[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [RFC 37/48] target/openrisc: prepare for 2-pass translation
From: |
Emilio G. Cota |
Subject: |
[Qemu-devel] [RFC 37/48] target/openrisc: prepare for 2-pass translation |
Date: |
Thu, 25 Oct 2018 13:20:46 -0400 |
Signed-off-by: Emilio G. Cota <address@hidden>
---
target/openrisc/translate.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/target/openrisc/translate.c b/target/openrisc/translate.c
index 947330e10a..2f084668f9 100644
--- a/target/openrisc/translate.c
+++ b/target/openrisc/translate.c
@@ -1308,6 +1308,8 @@ static void openrisc_tr_translate_insn(DisasContextBase
*dcbase, CPUState *cs,
OpenRISCCPU *cpu = OPENRISC_CPU(cs);
uint32_t insn = cpu_ldl_code(&cpu->env, dc->base.pc_next);
+ qemu_plugin_insn_append(plugin_insn, &insn, sizeof(insn));
+
if (!decode(dc, insn)) {
gen_illegal_exception(dc);
}
@@ -1407,6 +1409,8 @@ static const TranslatorOps openrisc_tr_ops = {
.translate_insn = openrisc_tr_translate_insn,
.tb_stop = openrisc_tr_tb_stop,
.disas_log = openrisc_tr_disas_log,
+ .ctx_base_offset = offsetof(DisasContext, base),
+ .ctx_size = sizeof(DisasContext),
};
void gen_intermediate_code(CPUState *cs, struct TranslationBlock *tb)
--
2.17.1
- [Qemu-devel] [RFC 00/48] Plugin support, Emilio G. Cota, 2018/10/25
- [Qemu-devel] [RFC 37/48] target/openrisc: prepare for 2-pass translation,
Emilio G. Cota <=
- [Qemu-devel] [RFC 45/48] plugin: lockstep execution support, Emilio G. Cota, 2018/10/25
- [Qemu-devel] [RFC 29/48] target/hppa: prepare for 2-pass translation, Emilio G. Cota, 2018/10/25
- [Qemu-devel] [RFC 21/48] *-user: plugin syscalls, Emilio G. Cota, 2018/10/25
- [Qemu-devel] [RFC 46/48] plugin: add plugin-chan PCI device, Emilio G. Cota, 2018/10/25
- [Qemu-devel] [RFC 44/48] cpus: lockstep execution support, Emilio G. Cota, 2018/10/25
- [Qemu-devel] [RFC 36/48] target/xtensa: prepare for 2-pass translation, Emilio G. Cota, 2018/10/25
- [Qemu-devel] [RFC 42/48] vl: support -plugin option, Emilio G. Cota, 2018/10/25
- [Qemu-devel] [RFC 33/48] target/riscv: prepare for 2-pass translation, Emilio G. Cota, 2018/10/25
- [Qemu-devel] [RFC 30/48] target/m68k: prepare for 2-pass translation, Emilio G. Cota, 2018/10/25
- [Qemu-devel] [RFC 35/48] target/sparc: prepare for 2-pass translation, Emilio G. Cota, 2018/10/25