From patchwork Fri Apr 5 10:24:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 786217 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:1101:b0:343:f27d:c44e with SMTP id z1csp92931wrw; Fri, 5 Apr 2024 03:26:48 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWIVgoJoimC/NzHZ99IK/0kTJhlJf7NwzXAjLumpYFETOMGEpHuBnhD2Cor2/JAlnfQhnLbSmaKv4vttVEdYuWu X-Google-Smtp-Source: AGHT+IEpUntOtMdskaFoBeHVE6s6/qOUxpXDkadm7guwaN6iN1xP/gJ2JZa2ye9EAew99pfAvxdK X-Received: by 2002:a05:6830:4d5:b0:6e9:f88b:1640 with SMTP id s21-20020a05683004d500b006e9f88b1640mr923469otd.21.1712312808260; Fri, 05 Apr 2024 03:26:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1712312808; cv=none; d=google.com; s=arc-20160816; b=zq/5FokTraXmFuYojZGsxwBwmN8C33s5F4ZbV/r9fLB+stQrt8gSSkN24P6rI/oB19 W8iUeR6dM/srE9xKryPjoECgMapfHE0ZVGmbAZUsKDSF1TMYjUDBpFrqopZNviK6mn1s /PuIAvph8ZChjc77l8mRejW5c+OqFHabc8MP69Wzq+0SSCRQ2IMQKXMlKzOBGGTY1XIu rgGqE8i1yTnO1DgonnPRbPvMXM+UobFds3mti1XBN7lf6v1S550Rry+S9I4Vxb+XDenA 3p4cXe0zIjepQfI7E6mxPb8FwZoHORFItUdxd69FriDHSxsEGa6ZofDlJq/zSfVQysa1 dXHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=mQu8+R8TpKFXj2TBf9M0KEgMGt+uMfxKhhpkx/uTdnQ=; fh=yLZwqfag1JeMiXBw5H9ZfaXpNBUTOQFjOO+U0yFfH6M=; b=UBa+K1Bt9dYGz+htbe5/KqGtKtNbf06k6Bb3eg/4Epgmn4CkxnyUr6x0TyiLoOtMYJ FdEJx64Xm5R+ZEtA7cdf+L6mx3pxvra3Es26OjVpP99PFU9CyQFSt9ft0EwqSMfCEyyA IPlAzW4ITiO7lBKomlccj2IwFTBZkBRupkGq0RUryzmU0Pz/yj/BsEBAHtqpO1DH/SZT tu+ZHv11gFKnbW2xwOhsp4YG8pjM1OlDXzCin6Tch1szWZ8t16meox/5sqYI5/QdWQbe 5pm0woS6T1EGniFL1/WIuLT4sdAyVNtCczxfmg73AchEFWHR30J+dGv/INLRyyXivy53 tgrw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BOxQRMn7; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id t20-20020a05620a451400b0078d4d99860asi518467qkp.81.2024.04.05.03.26.48 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 05 Apr 2024 03:26:48 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BOxQRMn7; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rsglP-00068Z-B3; Fri, 05 Apr 2024 06:25:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rsglL-000669-4Q for qemu-devel@nongnu.org; Fri, 05 Apr 2024 06:25:35 -0400 Received: from mail-oi1-x230.google.com ([2607:f8b0:4864:20::230]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rsglJ-0004ng-Jn for qemu-devel@nongnu.org; Fri, 05 Apr 2024 06:25:34 -0400 Received: by mail-oi1-x230.google.com with SMTP id 5614622812f47-3c5d940525fso985381b6e.0 for ; Fri, 05 Apr 2024 03:25:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712312732; x=1712917532; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=mQu8+R8TpKFXj2TBf9M0KEgMGt+uMfxKhhpkx/uTdnQ=; b=BOxQRMn7kJDyJLP6p4RTyKXT05Weoc9MAJl7fvAHYAc+DJ8N7d5bLS1O8n5fEwzPJK YNGnu1WsMN6a6jVce7KgISYf8avMCg2Jxk9fmSkiO7VpUsmegV9bN4HgjHUsTJntsVTf LjhqCnjdWHz4ZElaXruRgak6RNfoWnDIqWraZqGz7DwoWnXcSY2Ixg/7AuwwKwErF/e+ Yp2neAKtYcAIXkEjl6BwgwSWk9Mz7ttf/qmi91aCW9Yy/y5rvP2o3ZuInW/Yx/w/RAJL 3i3K71gMPBvF6ukzIgtS9zW5JJ9daoGlGi+Xt7szb7AARUG9wraqlgT9pFn8gY2ECkBq BQng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712312732; x=1712917532; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mQu8+R8TpKFXj2TBf9M0KEgMGt+uMfxKhhpkx/uTdnQ=; b=sDcLUzdn6+Y5xyPdeY1P8581AjLQf2wzP93Lzt8PQJ0FVl8TmnrkRvR7Pm37nQ17a1 oqV9U6xg1dgmzxo53SvLypeMLqgv2HLmAgZnvK0Ym7KIrBP3gJ0ZBP0D9QFNP/P5SDYS X2kY7JmSw6o1IsBMeF/z1ciqgyVeb2/Yk6r84LRSehn1ro0FE4GR9EprBUlscsxb1RvI /aZUVN11naec0y7DzRt8HoNqfk/kY5vcilYqXwxLopHfXhjqW1/AFKdH6o0G+BgIjrBT yrq596Ip1hMXnckn7BrawTaMFUWH0yfnCGsFkc6iMpSHeJzQVaze5iUnpq48RpSIfCn8 4wbw== X-Gm-Message-State: AOJu0YwkxCmQyT8IsAbTCmIdNRUpNIR0eoTRlGfMOuf22abapG7wnqnY 7C5/MQQie4nDKrZcFvPnsI3wwlnqyDz8m22DytD1RljDn2oPoiWkA2dQ3OupKKPhVycHlQz9RXw y X-Received: by 2002:a05:6870:6122:b0:22e:b382:8b87 with SMTP id s34-20020a056870612200b0022eb3828b87mr1118423oae.41.1712312731384; Fri, 05 Apr 2024 03:25:31 -0700 (PDT) Received: from stoup.. (098-147-007-212.res.spectrum.com. [98.147.7.212]) by smtp.gmail.com with ESMTPSA id h10-20020a63f90a000000b005e438fe702dsm1104304pgi.65.2024.04.05.03.25.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 03:25:31 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Brian Cain Subject: [PATCH 23/32] target/hexagon: Use translator_ldl in pkt_crosses_page Date: Fri, 5 Apr 2024 00:24:50 -1000 Message-Id: <20240405102459.462551-24-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240405102459.462551-1-richard.henderson@linaro.org> References: <20240405102459.462551-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::230; envelope-from=richard.henderson@linaro.org; helo=mail-oi1-x230.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Cc: Brian Cain Signed-off-by: Richard Henderson --- target/hexagon/translate.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/target/hexagon/translate.c b/target/hexagon/translate.c index 1344a3e4ab..37dec8b5c5 100644 --- a/target/hexagon/translate.c +++ b/target/hexagon/translate.c @@ -24,7 +24,6 @@ #include "exec/helper-proto.h" #include "exec/translation-block.h" #include "exec/log.h" -#include "exec/cpu_ldst.h" #include "internal.h" #include "attribs.h" #include "insn.h" @@ -1085,7 +1084,7 @@ static bool pkt_crosses_page(CPUHexagonState *env, DisasContext *ctx) int nwords; for (nwords = 0; !found_end && nwords < PACKET_WORDS_MAX; nwords++) { - uint32_t word = cpu_ldl_code(env, + uint32_t word = translator_ldl(env, &ctx->base, ctx->base.pc_next + nwords * sizeof(uint32_t)); found_end = is_packet_end(word); }