target/arm: Replace s->pc with s->base.pc_next
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 15 Aug 2019 08:46:44 +0000 (09:46 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 16 Aug 2019 13:02:49 +0000 (14:02 +0100)
commita04159166b880b505ccadc16f2fe84169806883d
tree1d5e3dee2c93fc36f1711d9395d1d58e3711f9d4
parent4818c3743b0e0095fdcecd24457da9b3443730ab
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>
target/arm/translate-a64.c
target/arm/translate.c
target/arm/translate.h