[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v3 28/50] target/sh4: fetch code with translator_ld
From: |
Alex Bennée |
Subject: |
[Qemu-devel] [PATCH v3 28/50] target/sh4: fetch code with translator_ld |
Date: |
Fri, 14 Jun 2019 18:11:38 +0100 |
From: "Emilio G. Cota" <address@hidden>
There is a small wrinkle with the gUSA instruction. The translator
effectively treats a (known) gUSA sequence as a single instruction.
For the purposes of the plugin we end up with a long multi-instruction
qemu_plugin_insn.
If the known sequence isn't detected we shall never run this
translation anyway.
Signed-off-by: Emilio G. Cota <address@hidden>
Signed-off-by: Alex Bennée <address@hidden>
---
target/sh4/translate.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/target/sh4/translate.c b/target/sh4/translate.c
index 5a7d8c4535..922785e225 100644
--- a/target/sh4/translate.c
+++ b/target/sh4/translate.c
@@ -1917,7 +1917,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] = cpu_lduw_code(env, pc + i * 2);
+ insns[i] = translator_lduw(env, pc + i * 2);
}
ld_adr = ld_dst = ld_mop = -1;
@@ -2332,7 +2332,7 @@ static void sh4_tr_translate_insn(DisasContextBase
*dcbase, CPUState *cs)
}
#endif
- ctx->opcode = cpu_lduw_code(env, ctx->base.pc_next);
+ ctx->opcode = translator_lduw(env, ctx->base.pc_next);
decode_opc(ctx);
ctx->base.pc_next += 2;
}
--
2.20.1
- [Qemu-devel] [PATCH v3 12/50] cputlb: introduce get_page_addr_code_hostp, (continued)
- [Qemu-devel] [PATCH v3 12/50] cputlb: introduce get_page_addr_code_hostp, Alex Bennée, 2019/06/14
- [Qemu-devel] [PATCH v3 14/50] tcg: add tcg_gen_st_ptr, Alex Bennée, 2019/06/14
- [Qemu-devel] [PATCH v3 10/50] queue: add QTAILQ_REMOVE_SEVERAL, Alex Bennée, 2019/06/14
- [Qemu-devel] [PATCH v3 07/50] plugin: add user-facing API, Alex Bennée, 2019/06/14
- [Qemu-devel] [PATCH v3 09/50] plugin: add implementation of the api, Alex Bennée, 2019/06/14
- [Qemu-devel] [PATCH v3 08/50] plugin: add core code, Alex Bennée, 2019/06/14
- [Qemu-devel] [PATCH v3 49/50] include/exec/cpu-defs.h: fix typo, Alex Bennée, 2019/06/14
- [Qemu-devel] [PATCH v3 21/50] *-user: notify plugin of exit, Alex Bennée, 2019/06/14
- [Qemu-devel] [PATCH v3 28/50] target/sh4: fetch code with translator_ld,
Alex Bennée <=
- [Qemu-devel] [PATCH v3 35/50] target/xtensa: fetch code with translator_ld, Alex Bennée, 2019/06/14
- [Qemu-devel] [PATCH v3 43/50] tests/plugin: add a hotblocks plugin, Alex Bennée, 2019/06/14
- [Qemu-devel] [PATCH v3 23/50] cpu: hook plugin vcpu events, Alex Bennée, 2019/06/14
- [Qemu-devel] [PATCH v3 11/50] cputlb: document get_page_addr_code, Alex Bennée, 2019/06/14
- [Qemu-devel] [PATCH v3 44/50] plugin: add qemu_plugin_insn_disas helper, Alex Bennée, 2019/06/14
- [Qemu-devel] [PATCH v3 18/50] cpu_ldst_useronly_template: remove redundant #ifndef CODE_ACCESS, Alex Bennée, 2019/06/14