target/sparc: convert to DisasContextBase
commitaf00be490b30d7f576d12ac7b2bc5406ca6fda3f
authorEmilio G. Cota <cota@braap.org>
Thu, 15 Feb 2018 02:16:30 +0000 (14 21:16 -0500)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 9 May 2018 17:12:21 +0000 (9 10:12 -0700)
tree0c125b4f2d33fd93c536527a4d942b99f2a1f4c1
parentc5e6ccdf6c8d32d3a45d9dca4d6847dcff741882
target/sparc: convert to DisasContextBase

Notes:

- pc and npc are left unmodified, since they can point to out-of-TB
  jump targets.

- Got rid of last_pc in gen_intermediate_code(), using base.pc_next
  instead. Only update pc_next (1) on a breakpoint (so that tb->size
  includes the insn), and (2) after reading the current instruction
  from memory. This allows us to use base.pc_next in the BP check,
  which is what the translator loop does.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Cc: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Cc: Artyom Tarasenko <atar4qemu@gmail.com>
Signed-off-by: Emilio G. Cota <cota@braap.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
target/sparc/translate.c