[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 23/26] target/s390x: don't use ld_code2 to probe next pc
From: |
Alex Bennée |
Subject: |
[PATCH v3 23/26] target/s390x: don't use ld_code2 to probe next pc |
Date: |
Thu, 20 Oct 2022 12:52:06 +0100 |
This isn't an translator picking up an instruction so we shouldn't use
the translator_lduw function which has side effects for plugins.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
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 1d2dddab1c..f4de8efe3a 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);
}
--
2.34.1
- [PATCH v3 00/26] testing/next (docker, avocado, s390x, MAINTAINERS), Alex Bennée, 2022/10/20
- [PATCH v3 25/26] target/s390x: fake instruction loading when handling 'ex', Alex Bennée, 2022/10/20
- [PATCH v3 24/26] target/s390x: don't probe next pc for EXecuted insns, Alex Bennée, 2022/10/20
- [PATCH v3 23/26] target/s390x: don't use ld_code2 to probe next pc,
Alex Bennée <=
- Re: [PATCH v3 00/26] testing/next (docker, avocado, s390x, MAINTAINERS), Bin Meng, 2022/10/27