From patchwork Wed Apr 24 23:31:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 791603 Delivered-To: patch@linaro.org Received: by 2002:a5d:4884:0:b0:346:15ad:a2a with SMTP id g4csp1106995wrq; Wed, 24 Apr 2024 16:34:59 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUqrMA9B4x5+6Q4fai6iwst8Y0wSaiNlLSDFZXV9COv741HnLHZRzb1Zz5dWFZG9Iv65qQHFQJOuH/psk236iXp X-Google-Smtp-Source: AGHT+IEkk0zMiKDo2KnIAu5Klf2WFAv94L+Js0RreS3ldb1oGOK5thcss/Jjga5KLduMcdLl+eaW X-Received: by 2002:ac8:7d8a:0:b0:43a:d6e:7e29 with SMTP id c10-20020ac87d8a000000b0043a0d6e7e29mr2180160qtd.0.1714001699742; Wed, 24 Apr 2024 16:34:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1714001699; cv=none; d=google.com; s=arc-20160816; b=My1cAHxlb0y3BrvhdCauEHw0C9GU+iCAhvx++kfSKk+XE5OFWUjDEMsKwEiqmQuUtc saAuF2Eru0eF0roQSLSEhUHB4bya7DpECf7GP7osG75al9S29rK2C59Dh91g/TnfOC+v pjCzTRfFqSsqI3QygNEPAW6KB9zRweqwUOPE5bTmR5lI5rCmxdHeLKqGy9d6Dmbj4wpv aHbse0L28zeFzkj8Fvb2CtAKdKMPPPchTEJVcG6uiy/WyDQisLhrG+KXPK/c/wEf/8NV xrHEv1QuSlrrsae1TwRHOpm7KO7DCnPaXcF1vq+RcBpr19U8SNmed0f/e5LuXgyFpyEc frXg== 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:to:from :dkim-signature; bh=W9eiE29Bj7CMVURG9HseqahFmYGTQEZ0wVZgUH4CDAc=; fh=PnYt+qEB9tAfMKoqBm2xjKOFpYyFFGPudh5cVIoieJM=; b=rba7I9o9H+R3jswi/prchPSxrDXRAW6nuyg1ahjoxnY7kRjfnkfli9snnwwF+Af6ue aezZilULoht/LSv1pNhxyLfY/Vl9GJgJgoFjKpLLdTuY13HbJi/yW1R1P6oYfLwnzUVl DQSrjK7nJMgEayLlkhZPj0J/MmUugdMwYdWn9PQwqxi7kCBofCcXNZ8sWouEaya369s5 3vDLtwy6RUoRWOk4TCrJqF+FV+csaD23WWt0gOgTYBn3NPw1Imq0gVbBqa/xJ1w+c5FY 8zzsROtA1uAUqbWyG+AH1E2iUESOIwvVtfeppbRNaFjKFbDtFMoavgCoXlgL9MxqkIS0 HWdw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=q4ne7GwS; 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 e12-20020ac85dcc000000b00439a18491e7si9289731qtx.67.2024.04.24.16.34.59 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 24 Apr 2024 16:34:59 -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=q4ne7GwS; 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 1rzm5m-0005yE-DB; Wed, 24 Apr 2024 19:31:58 -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 1rzm5k-0005wc-63 for qemu-devel@nongnu.org; Wed, 24 Apr 2024 19:31:56 -0400 Received: from mail-pg1-x52c.google.com ([2607:f8b0:4864:20::52c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rzm5i-0003cb-MA for qemu-devel@nongnu.org; Wed, 24 Apr 2024 19:31:55 -0400 Received: by mail-pg1-x52c.google.com with SMTP id 41be03b00d2f7-5c66b093b86so1176353a12.0 for ; Wed, 24 Apr 2024 16:31:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714001513; x=1714606313; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=W9eiE29Bj7CMVURG9HseqahFmYGTQEZ0wVZgUH4CDAc=; b=q4ne7GwS5Zv1dTNDaIMTCadg3GLNYpudrwiN/no7RoQHpfSgYHBqwXF/VPFhtsB3Lt iuUtfHv17P0596RyeZudeY8hf54RuKuVJr7sbp5YZBzTRXTMU53Dg1ytrDwnosoMxRjs jAZDg+h+t1OoIFi7M+/4kTWm7NrK0sSiCs6tZbxU9Pt+Uzi6yyaG7c6A1U/rKxV2AUv6 6cBOCECeEZUjhoLqAlN/EoCH49NjoSVjaxByl2dxRJl6QlaGM0yJlpids2ldZhIV5x8A ICXOTyRpFDtXIFD7cvKSveP6ltdYFOZ+VnA+O15aCf89DD0QlOgx2JnKd8RgCKvZXA/0 +eIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714001513; x=1714606313; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=W9eiE29Bj7CMVURG9HseqahFmYGTQEZ0wVZgUH4CDAc=; b=gcf3yj9HBsPjLhPy9Gpv2EW+wlWrqhPKpj/rDj/PCCrAWkPIeZ2ncLCAq0YIBqRpa9 UPbLCnf6SY37IzPagonJ/OBIIFgFlUJLse5rTyI6qu69szikF+JoLYYCBN8hMRirOf6T J9Fb0QBxHCjzbWgdaDibYJNK38pgwETyTHmnBdwVXG1at9ca+Q61CHUyb0s5NxTzz2cO BJD09/aqIsz7i5dDea8cF9wyoILHzNs1Lu6zXQ/q7lT6eH5do7/3EcpvJy5oS2nDquCs yJrVytFmGyU0bbRrU077AkBkBek/K7jNIKkRVlrqNqIfD7VwjfM/ZmPtSdpZd9rAH8yQ llQw== X-Gm-Message-State: AOJu0YxECxvvAK1Aa13PEvxx6wx0l7iCiDIV9qcwccfJ347OP7zbq40R wslj4v0K7owzxwiUtzrUNDyHTeEqavmbzI2dGEk/RhPFsNONj0d7f7UY9IzNHN3AsKZxkm2MHqw n X-Received: by 2002:a17:90a:b104:b0:2aa:b377:d29e with SMTP id z4-20020a17090ab10400b002aab377d29emr1705370pjq.3.1714001513151; Wed, 24 Apr 2024 16:31:53 -0700 (PDT) Received: from stoup.. ([156.19.246.23]) by smtp.gmail.com with ESMTPSA id z24-20020a17090abd9800b002a56b3931dfsm11737859pjr.49.2024.04.24.16.31.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 16:31:52 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v2 23/33] target/hexagon: Use translator_ldl in pkt_crosses_page Date: Wed, 24 Apr 2024 16:31:21 -0700 Message-Id: <20240424233131.988727-24-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240424233131.988727-1-richard.henderson@linaro.org> References: <20240424233131.988727-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::52c; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x52c.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 Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé --- 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); }