Sparc: fix exceptions in delay slot
authorBlue Swirl <blauwirbel@gmail.com>
Sun, 11 Apr 2010 19:47:49 +0000 (19:47 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Sun, 11 Apr 2010 19:47:49 +0000 (19:47 +0000)
commitd7da2a10402f1644128b66414ca8f86bdea9ae7c
tree9d413494748513e6cedb9a284ce20e4b92d64a3b
parent73f190352dcef63f6e20e4b0f9efe29e6ec57b43
Sparc: fix exceptions in delay slot

Fix a case where an exception happens with the
instruction in the delay slot.

Recovery of branch condition in the exception handling
code was not converted to TCG. Because the condition
was bogus, wrong NPC could be selected from the two
candidates.

A nice bug report with a test case can be found in:
https://bugs.launchpad.net/qemu/+bug/551814

Fix based on patch by Fabrice Bellard.

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
target-sparc/translate.c