From nobody Wed Feb 11 02:08:58 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1666898729; cv=none; d=zohomail.com; s=zohoarc; b=ZBx7VxCa/a+kcnGzupDLl2B2pt2eGvp6cP0EsvWmXRDSCdzE+o/pY/uzKhRYbckaEruBcpQ9rRmzcamXwb1/ahaQozH4q5A6SJZCnIe6wiPMmixL9AIta/a31+hAge60RQa+1sKyIqiqEuQiZf52mnsLBbqwMaxWEpKZYJN9ibs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1666898729; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=XBKvcXH7eko7TPHV3oI1LuhtL6vJkLmpUuV3hPcT42o=; b=hoQyIBt29A477Mlvdmjkm5ndC40TqzkNo0ZmaHcfbtnUnQeRh2PMTiEzqYPVnfK7PMDZA5IRA+lDF5qNp39+A+T8hn+SYWe5i02MZtvW1EAfaMMz/LyFwILIGjc+pzhQ+G2G1HqJixjyypO+jGRRAtzTzb1nX/2UQjyxvgqHmH8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1666898729860565.7295660626278; Thu, 27 Oct 2022 12:25:29 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oo7t7-0005is-LP; Thu, 27 Oct 2022 14:45:57 -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 1oo7sI-0005UM-8R for qemu-devel@nongnu.org; Thu, 27 Oct 2022 14:45:07 -0400 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oo7sD-0004lY-SL for qemu-devel@nongnu.org; Thu, 27 Oct 2022 14:45:05 -0400 Received: by mail-wr1-x432.google.com with SMTP id w14so3703936wru.8 for ; Thu, 27 Oct 2022 11:45:00 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id f15-20020a05600c154f00b003b4a68645e9sm6132496wmg.34.2022.10.27.11.44.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Oct 2022 11:44:54 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 796C21FFCD; Thu, 27 Oct 2022 19:36:39 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=XBKvcXH7eko7TPHV3oI1LuhtL6vJkLmpUuV3hPcT42o=; b=CkoQF7g6quPYh38UuSk7pk9dXlQLtVIMLdHILdg6ZG8gnFWLBtJRBkp0lNmcLtnedS C/+sslcZ20FgXLhwo2bd2npNjD1Oep9pERAueHmh5OpFqokvg3rz4eYH4ZxjefEaro/s +OaqraK6+7QmHu84z5SIViSnVc5PQ8usNO/AwC3vys0V/JJSS2ewuxH+X46BgeU6a5mW kXcvvpTtmL4Tv64TNa/FbSfcFjqw6zbE2M8i12w32C1RVQLV67zd7Bgin5yyROQd3vEo TNkrZCGEufIm/aDSuj+BETad0vMIZvu2iaU2PMmcemPpvkfMOQ9TSoROb+xhDgvYAz6S QuRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=XBKvcXH7eko7TPHV3oI1LuhtL6vJkLmpUuV3hPcT42o=; b=dCh+h/sN+mMAECOzmJgwgqsjA/45DXP4/k1VNzErMoVMa/y3I4Ifhx3N3WTzjqkODT ebqpMF3WgaP50ozoudpCVX4hZJ9AQvJbHQmVmXaFkT6cW19xIZGYr7lvNm/ldwCINSRj Oj19NpqB0T8ktPOkLF1tR9qKog2fhAqKnEgm9eRtOjQoiMch0QEJtzzz4tNt4d9CxWrk B6OIrFvJJ+R5lvGEuQWhz7LLoTLIfUqbajmruRLAUqWOKgnKnuWYhOUFCvI7VbBmDByv t2PvzhB+n5zfnsJVlqm8yIXQTs6TSPEbTfLDa+PL2yri+O/JVJ/or6H/vfu+1fRLOLNN Xk5g== X-Gm-Message-State: ACrzQf1uMg1cVfpQFfhBMJXlviA7xsFeKwBXuyeq+N4zxjkKMPUv/lgd SZmgON7kS47UIKaGGY4gKdA+/Q== X-Google-Smtp-Source: AMsMyM5WJ30YG4C/hrQPh6DHIMEDOQXhgFxLZfCLZUpG+V+5C0UpcxSHGcnNcUr2SN6D0tzeGVnadA== X-Received: by 2002:a05:6000:2ae:b0:231:86ac:979a with SMTP id l14-20020a05600002ae00b0023186ac979amr32750342wry.611.1666896299626; Thu, 27 Oct 2022 11:44:59 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: fam@euphon.net, berrange@redhat.com, f4bug@amsat.org, aurelien@aurel32.net, pbonzini@redhat.com, stefanha@redhat.com, crosa@redhat.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= , David Hildenbrand , Richard Henderson , Ilya Leoshkevich , Cornelia Huck , Thomas Huth , qemu-s390x@nongnu.org (open list:S390 TCG CPUs) Subject: [PATCH v4 23/30] target/s390x: don't use ld_code2 to probe next pc Date: Thu, 27 Oct 2022 19:36:29 +0100 Message-Id: <20221027183637.2772968-24-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221027183637.2772968-1-alex.bennee@linaro.org> References: <20221027183637.2772968-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::432; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x432.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: , Sender: "Qemu-devel" Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1666898731232100002 This isn't an translator picking up an instruction so we shouldn't use the translator_lduw function which has side effects for plugins. Reviewed-by: David Hildenbrand Reviewed-by: Richard Henderson Acked-by: Ilya Leoshkevich Signed-off-by: Alex Benn=C3=A9e --- target/s390x/tcg/translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/s390x/tcg/translate.c b/target/s390x/tcg/translate.c index 5798928473..9df7f9e693 100644 --- a/target/s390x/tcg/translate.c +++ b/target/s390x/tcg/translate.c @@ -6612,7 +6612,7 @@ static void s390x_tr_insn_start(DisasContextBase *dcb= ase, CPUState *cs) static target_ulong get_next_pc(CPUS390XState *env, DisasContext *s, uint64_t pc) { - uint64_t insn =3D ld_code2(env, s, pc); + uint64_t insn =3D cpu_lduw_code(env, pc); =20 return pc + get_ilen((insn >> 8) & 0xff); } --=20 2.34.1