diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2022-08-11 13:48:03 -0700 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2022-09-06 08:04:26 +0100 |
commit | 306c872103b4d0986c9f671eb7538b0b70bf69b5 (patch) | |
tree | 17360b109ccbc2357188396e082ed033cd13ef9e /target/nios2 | |
parent | dac8d19bdb3ccaafbcbd2df34135464964232a8f (diff) | |
download | qemu-306c872103b4d0986c9f671eb7538b0b70bf69b5.zip qemu-306c872103b4d0986c9f671eb7538b0b70bf69b5.tar.gz qemu-306c872103b4d0986c9f671eb7538b0b70bf69b5.tar.bz2 |
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/nios2')
-rw-r--r-- | target/nios2/translate.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/target/nios2/translate.c b/target/nios2/translate.c index 3a037a6..c588e8e 100644 --- a/target/nios2/translate.c +++ b/target/nios2/translate.c @@ -1038,10 +1038,11 @@ static const TranslatorOps nios2_tr_ops = { .disas_log = nios2_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(&nios2_tr_ops, &dc.base, cs, tb, max_insns); + translator_loop(cs, tb, max_insns, pc, host_pc, &nios2_tr_ops, &dc.base); } void nios2_cpu_dump_state(CPUState *cs, FILE *f, int flags) |