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