From patchwork Wed May 15 07:52:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 796905 Delivered-To: patch@linaro.org Received: by 2002:a5d:452e:0:b0:34e:ceec:bfcd with SMTP id j14csp2856617wra; Wed, 15 May 2024 01:02:45 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCV4oZqWwbuJqnFzVduNHGjCJmg6LznWZ7proiCRxXp6VP3uj3XcCIknxHBJXfVW2LBnOl9rqFBLzg8+Jfhgxi+y X-Google-Smtp-Source: AGHT+IFTIbvN4OrpKp9RZJsvGW6DdletGVSNHQvmumdIS74W6aJPY1OByfZqYDSNOy3o1XKtEo5l X-Received: by 2002:a05:6808:2ca:b0:3c9:7f1e:76dc with SMTP id 5614622812f47-3c9970dbfdcmr15464738b6e.59.1715760165128; Wed, 15 May 2024 01:02:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1715760165; cv=none; d=google.com; s=arc-20160816; b=hjk1S+b29P/e5c3L28+Ag8OyBgIkyzZBd2XouaO3VPDtiB2dzblZe2FjOiE0losBu8 cPz8JJmzs7eC+IQd/Ntk9jUBM5Im+6Sb1i7dz0YE0tDcpoLszN4zlqoUHcda9qSrmOS3 qqmCUarbjHbUJtYO6yCifqS+W8een5nj+Y96UNvZXrthKUJ7XF1t2GMUVBL4PARwiYFN fHF3LHRqcNjUYjx/krhwbGFm6rI43I/iiH49DQtsHqFq8QIq9g37eSIrexuyvytbH/uh iwB9iIzJ+4Gne1Jhxf5yocP6sfb3su7I//aAr+pwPCGwXoVA5BGkxtjZGQlFhR7WNhHV oWLw== 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=JIimXBciSNwwzH7l+M6cptiwOdaQNdn1djFTj7g5Tr8=; fh=kQadAhxV42GJ3cd2VUw1RyURv/zJQGvmUdF7iLEVTtc=; b=DxBGUs+nhKDqJT5Mjg6ZO6LGHuwBDVMGx5wwWxKpxoHpJdgCe8p0t/rzKZOxxwx+Nj F6nWN1SxSRMFbLk/ih5JEnmgMIAXiCPo5a7Kl9uPzKoJdo7HeQRnHkLh/Eyx3F3VdtbY akWALBkh/6LTaIFzQHWReB4HES9IOBDvZ4JwdV7y1NzyOhgAzX6Vi2dGTjB1YuvAR5il WCaVwpQ5YniypEBnwTURcP2DURpFIl5/91A5w8A3tJhx3+g9mR+DIVc59WNgKzZJGTLo jLN2f43bYNsQJhA1jCZWcaJm85BcOvboatm9GaH1eK6LdIOaujJktjvEMZBy/1Fa/LLS c/bQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=i7l63MY8; 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 d75a77b69052e-43df56b318esi139656311cf.579.2024.05.15.01.02.44 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 15 May 2024 01:02:45 -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=i7l63MY8; 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 1s79Rr-0004HO-30; Wed, 15 May 2024 03:53:15 -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 1s79Rl-0004Bk-T3 for qemu-devel@nongnu.org; Wed, 15 May 2024 03:53:10 -0400 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s79Rh-0001cM-Qk for qemu-devel@nongnu.org; Wed, 15 May 2024 03:53:07 -0400 Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-41fd5dc0480so40696285e9.1 for ; Wed, 15 May 2024 00:53:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715759584; x=1716364384; 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=JIimXBciSNwwzH7l+M6cptiwOdaQNdn1djFTj7g5Tr8=; b=i7l63MY8knV0mvfj7TkMh8nap6zU1+rYqVQJgXH14P2VxwG9OI/6fCLoighK/nEC5P 3J8rlxhK70Q8f6p7l/zbsg/cQ4QfK85B666vkMDwvebcgKLGXZdHrrEe09SRQHuDXOOt 9iS5aQLLOxHJPBts38O1avdSUo7gBwBkSnWLWHO+va62hxZbK4yYM3fwlG1xPSUj2X8r +1kFQ4l5odYVdazROcducMrotEUowK4LquJEgWCKXFEmubX0eD2EZAnfO7mpZtUVhiHh SDGuGmwfBJ4uKdIhe5HgrNIeDxUEQNUcLZzZzz9BG1krCXnpYuRkSwfW9KjYHR80Nk5v sXrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715759584; x=1716364384; 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=JIimXBciSNwwzH7l+M6cptiwOdaQNdn1djFTj7g5Tr8=; b=fapwd0yeAQJ+cUR/ac6xTW8616jB0rzp+0b6TelMt12OslA5P2LkvkfgqFZnfeV+Mt pinmomA61jK6kvDj+cNcNTpPoZSWz8PEyyBm0yqm9YeT6dOVDIwkVr9Gifz6qwyB6Zqe kwawq0CcD+zrr+U+GJfZj3aKnGG/NW6Pv6zsmgtY9sfSFkg5jl2y2jY4gq1cNkg6ykW4 wEJn8csF8wqYsFFgwqsUANWQwARXXjD/hp6pPUwwGWAqkiGoqe4VtuTYBNfXEIIafVEn imxNrrtBRm8ODltWJUaBYNRTp4lk5dcpe3DiR4BOneIhGybkCXTg9BA9yWVC9OdP0GQf ye2w== X-Gm-Message-State: AOJu0YyDkSd4H4xyBKbmYzeZyFt/RNLFUjbSD/5/nmAYd6+Tb/yCT/hj VVRNVRAgoTVL6cpJoZxh2+dMT+aSP4vgCU9tPvuB7mGHWt11a9RIbYzOl9q0/QlMpDnISxYg/py z+yg= X-Received: by 2002:a05:600c:4f42:b0:41b:a670:a9f1 with SMTP id 5b1f17b1804b1-41feaa2f409mr95686345e9.7.1715759584328; Wed, 15 May 2024 00:53:04 -0700 (PDT) Received: from stoup.. ([149.14.240.163]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-41fccee9292sm222611855e9.37.2024.05.15.00.53.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 00:53:04 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 23/34] target/hexagon: Use translator_ldl in pkt_crosses_page Date: Wed, 15 May 2024 09:52:36 +0200 Message-Id: <20240515075247.68024-24-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240515075247.68024-1-richard.henderson@linaro.org> References: <20240515075247.68024-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::330; envelope-from=richard.henderson@linaro.org; helo=mail-wm1-x330.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 Reviewed-by: Philippe Mathieu-Daudé 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 61302d4f46..4b1bee3c6d 100644 --- a/target/hexagon/translate.c +++ b/target/hexagon/translate.c @@ -25,7 +25,6 @@ #include "exec/translation-block.h" #include "exec/cpu_ldst.h" #include "exec/log.h" -#include "exec/cpu_ldst.h" #include "internal.h" #include "attribs.h" #include "insn.h" @@ -1023,7 +1022,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); }