summaryrefslogtreecommitdiffstats
path: root/target/sh4
diff options
context:
space:
mode:
authorIlya Leoshkevich2021-08-10 00:32:59 +0200
committerRichard Henderson2021-09-14 21:00:20 +0200
commit4e116893c6079b51efdc9e226be3f1a530f47f5e (patch)
treedd83c64b73a5a2da8e7eb51b18604f5888ee95a1 /target/sh4
parentgitlab-ci: Make more custom runner jobs manual, and don't allow failure (diff)
downloadqemu-4e116893c6079b51efdc9e226be3f1a530f47f5e.tar.gz
qemu-4e116893c6079b51efdc9e226be3f1a530f47f5e.tar.xz
qemu-4e116893c6079b51efdc9e226be3f1a530f47f5e.zip
accel/tcg: Add DisasContextBase argument to translator_ld*
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com> [rth: Split out of a larger patch.] Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/sh4')
-rw-r--r--target/sh4/translate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/sh4/translate.c b/target/sh4/translate.c
index 8704fea1ca..cf5fe9243d 100644
--- a/target/sh4/translate.c
+++ b/target/sh4/translate.c
@@ -1907,7 +1907,7 @@ static void decode_gusa(DisasContext *ctx, CPUSH4State *env)
/* Read all of the insns for the region. */
for (i = 0; i < max_insns; ++i) {
- insns[i] = translator_lduw(env, pc + i * 2);
+ insns[i] = translator_lduw(env, &ctx->base, pc + i * 2);
}
ld_adr = ld_dst = ld_mop = -1;
@@ -2307,7 +2307,7 @@ static void sh4_tr_translate_insn(DisasContextBase *dcbase, CPUState *cs)
}
#endif
- ctx->opcode = translator_lduw(env, ctx->base.pc_next);
+ ctx->opcode = translator_lduw(env, &ctx->base, ctx->base.pc_next);
decode_opc(ctx);
ctx->base.pc_next += 2;
}