aboutsummaryrefslogtreecommitdiff
path: root/target/s390x
diff options
context:
space:
mode:
authorAlex Bennée <alex.bennee@linaro.org>2022-10-27 19:36:29 +0100
committerAlex Bennée <alex.bennee@linaro.org>2022-10-31 20:37:59 +0000
commitefe7c4f08d543cd4181c672bedba5575390db2a8 (patch)
treedb194805dcab01693a31293918ef7dcf5500ca3d /target/s390x
parent839866fcbd4f2ce554f3c16bf68a520ebc2da310 (diff)
downloadqemu-efe7c4f08d543cd4181c672bedba5575390db2a8.zip
qemu-efe7c4f08d543cd4181c672bedba5575390db2a8.tar.gz
qemu-efe7c4f08d543cd4181c672bedba5575390db2a8.tar.bz2
target/s390x: don't use ld_code2 to probe next pc
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 <david@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Acked-by: Ilya Leoshkevich <iii@linux.ibm.com> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20221027183637.2772968-24-alex.bennee@linaro.org>
Diffstat (limited to 'target/s390x')
-rw-r--r--target/s390x/tcg/translate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/s390x/tcg/translate.c b/target/s390x/tcg/translate.c
index 5798928..9df7f9e 100644
--- a/target/s390x/tcg/translate.c
+++ b/target/s390x/tcg/translate.c
@@ -6612,7 +6612,7 @@ static void s390x_tr_insn_start(DisasContextBase *dcbase, CPUState *cs)
static target_ulong get_next_pc(CPUS390XState *env, DisasContext *s,
uint64_t pc)
{
- uint64_t insn = ld_code2(env, s, pc);
+ uint64_t insn = cpu_lduw_code(env, pc);
return pc + get_ilen((insn >> 8) & 0xff);
}