summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorRichard Henderson2019-08-15 10:46:44 +0200
committerPeter Maydell2019-08-16 15:02:49 +0200
commita04159166b880b505ccadc16f2fe84169806883d (patch)
tree1d5e3dee2c93fc36f1711d9395d1d58e3711f9d4 /scripts
parenttarget/arm: Remove redundant s->pc & ~1 (diff)
downloadqemu-a04159166b880b505ccadc16f2fe84169806883d.tar.gz
qemu-a04159166b880b505ccadc16f2fe84169806883d.tar.xz
qemu-a04159166b880b505ccadc16f2fe84169806883d.zip
target/arm: Replace s->pc with s->base.pc_next
We must update s->base.pc_next when we return from the translate_insn hook to the main translator loop. By incrementing s->base.pc_next immediately after reading the insn word, "pc_next" contains the address of the next instruction throughout translation. All remaining uses of s->pc are referencing the address of the next insn, so this is now a simple global replacement. Remove the "s->pc" field. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-id: 20190807045335.1361-7-richard.henderson@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions