]> git.ipfire.org Git - thirdparty/qemu.git/commit - target/sparc/translate.c
target-sparc: Remove gen_opc_jump_pc
authorRichard Henderson <rth@twiddle.net>
Mon, 31 Aug 2015 20:24:44 +0000 (13:24 -0700)
committerRichard Henderson <rth@twiddle.net>
Wed, 7 Oct 2015 09:36:49 +0000 (20:36 +1100)
commit6c42444f9a53b6af39d46008cb9f650b11e96cb9
tree268c4a98bab76326a43dbafa7803bdbb381d98bd
parent2bf2e019ed0a6349220620240c0ba807846793b9
target-sparc: Remove gen_opc_jump_pc

Since jump_pc[1] is always npc + 4, we can infer after incrementing
that jump_pc[1] == pc + 4.  Because of that, we can encode the branch
destination into a single word, and store that in npc.

Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <rth@twiddle.net>
target-sparc/translate.c