diff options
author | Richard Henderson | 2022-08-11 22:48:03 +0200 |
---|---|---|
committer | Richard Henderson | 2022-09-06 09:04:26 +0200 |
commit | 306c872103b4d0986c9f671eb7538b0b70bf69b5 (patch) | |
tree | 17360b109ccbc2357188396e082ed033cd13ef9e /target/cris | |
parent | accel/tcg: Remove translator_ldsw (diff) | |
download | qemu-306c872103b4d0986c9f671eb7538b0b70bf69b5.tar.gz qemu-306c872103b4d0986c9f671eb7538b0b70bf69b5.tar.xz qemu-306c872103b4d0986c9f671eb7538b0b70bf69b5.zip |
accel/tcg: Add pc and host_pc params to gen_intermediate_code
Pass these along to translator_loop -- pc may be used instead
of tb->pc, and host_pc is currently unused. Adjust all targets
at one time.
Acked-by: Alistair Francis <alistair.francis@wdc.com>
Acked-by: Ilya Leoshkevich <iii@linux.ibm.com>
Tested-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/cris')
-rw-r--r-- | target/cris/translate.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/target/cris/translate.c b/target/cris/translate.c index ac101344a3..73385b0b3c 100644 --- a/target/cris/translate.c +++ b/target/cris/translate.c @@ -3286,10 +3286,11 @@ static const TranslatorOps cris_tr_ops = { .disas_log = cris_tr_disas_log, }; -void gen_intermediate_code(CPUState *cs, TranslationBlock *tb, int max_insns) +void gen_intermediate_code(CPUState *cs, TranslationBlock *tb, int max_insns, + target_ulong pc, void *host_pc) { DisasContext dc; - translator_loop(&cris_tr_ops, &dc.base, cs, tb, max_insns); + translator_loop(cs, tb, max_insns, pc, host_pc, &cris_tr_ops, &dc.base); } void cris_cpu_dump_state(CPUState *cs, FILE *f, int flags) |