target-sparc: Fix -singlestep.
authorRichard Henderson <rth@twiddle.net>
Mon, 26 Apr 2010 17:17:24 +0000 (10:17 -0700)
committerBlue Swirl <blauwirbel@gmail.com>
Mon, 26 Apr 2010 17:23:58 +0000 (17:23 +0000)
commit085816542ebd49b8ef236288b853d7e916eb7dde
tree561d95a51db553b13a1e65bd1199347727872368
parent8d8662b3c57855f711564ac5234711fd91f45c6c
target-sparc: Fix -singlestep.

Single-stepping was not properly updating npc, resulting in some
instructions being executed twice.  In addition, we were emitting
dead code at the end of the TB.

Fix both by teaching gen_goto_tb to avoid goto_tb for single-step
and removing the special-case code in gen_intermediate_code_internal.

Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
target-sparc/translate.c