diff mbox series

[RFC,31/48] target/mips: prepare for 2-pass translation (WIP)

Message ID 20181025172057.20414-32-cota@braap.org (mailing list archive)
State New, archived
Headers show
Series Plugin support | expand

Commit Message

Emilio Cota Oct. 25, 2018, 5:20 p.m. UTC
XXX: fill in plugin_insn

Signed-off-by: Emilio G. Cota <cota@braap.org>
---
 target/mips/translate.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/target/mips/translate.c b/target/mips/translate.c
index efafc6e795..46ed40cf8f 100644
--- a/target/mips/translate.c
+++ b/target/mips/translate.c
@@ -25455,6 +25455,8 @@  static const TranslatorOps mips_tr_ops = {
     .translate_insn     = mips_tr_translate_insn,
     .tb_stop            = mips_tr_tb_stop,
     .disas_log          = mips_tr_disas_log,
+    .ctx_base_offset    = offsetof(DisasContext, base),
+    .ctx_size           = sizeof(DisasContext),
 };
 
 void gen_intermediate_code(CPUState *cs, struct TranslationBlock *tb)