diff options
author | Ilya Leoshkevich <iii@linux.ibm.com> | 2021-08-09 12:32:59 -1000 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2021-09-14 12:00:20 -0700 |
commit | 4e116893c6079b51efdc9e226be3f1a530f47f5e (patch) | |
tree | dd83c64b73a5a2da8e7eb51b18604f5888ee95a1 /target/ppc/translate.c | |
parent | 4c9af1ea1457782cf0adb293179335ef6de942aa (diff) | |
download | qemu-4e116893c6079b51efdc9e226be3f1a530f47f5e.zip qemu-4e116893c6079b51efdc9e226be3f1a530f47f5e.tar.gz qemu-4e116893c6079b51efdc9e226be3f1a530f47f5e.tar.bz2 |
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/ppc/translate.c')
-rw-r--r-- | target/ppc/translate.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/target/ppc/translate.c b/target/ppc/translate.c index 171b216..5d8b06b 100644 --- a/target/ppc/translate.c +++ b/target/ppc/translate.c @@ -8585,7 +8585,7 @@ static void ppc_tr_translate_insn(DisasContextBase *dcbase, CPUState *cs) ctx->base.pc_next, ctx->mem_idx, (int)msr_ir); ctx->cia = pc = ctx->base.pc_next; - insn = translator_ldl_swap(env, pc, need_byteswap(ctx)); + insn = translator_ldl_swap(env, dcbase, pc, need_byteswap(ctx)); ctx->base.pc_next = pc += 4; if (!is_prefix_insn(ctx, insn)) { @@ -8600,7 +8600,8 @@ static void ppc_tr_translate_insn(DisasContextBase *dcbase, CPUState *cs) gen_exception_err(ctx, POWERPC_EXCP_ALIGN, POWERPC_EXCP_ALIGN_INSN); ok = true; } else { - uint32_t insn2 = translator_ldl_swap(env, pc, need_byteswap(ctx)); + uint32_t insn2 = translator_ldl_swap(env, dcbase, pc, + need_byteswap(ctx)); ctx->base.pc_next = pc += 4; ok = decode_insn64(ctx, deposit64(insn2, 32, 32, insn)); } |