diff options
author | Richard Henderson <rth@twiddle.net> | 2014-06-28 13:06:19 -0700 |
---|---|---|
committer | Richard Henderson <rth@twiddle.net> | 2015-05-18 13:03:46 -0700 |
commit | ba9c5de5f2d33d468a07a8794121472ea031a0b5 (patch) | |
tree | f0efcd2cad8edba21b68e0b0feb41959b5454f66 /target-alpha/helper.c | |
parent | 9d5a626b2c3fa98761b35b5e2ac86f7adb231002 (diff) | |
download | qemu-ba9c5de5f2d33d468a07a8794121472ea031a0b5.zip qemu-ba9c5de5f2d33d468a07a8794121472ea031a0b5.tar.gz qemu-ba9c5de5f2d33d468a07a8794121472ea031a0b5.tar.bz2 |
target-alpha: Set PC correctly for floating-point exceptions
PC should be one past the faulting insn. Add better commentary
for the machine-check exception path.
Reported-by: Al Viro <viro@ZenIV.linux.org.uk>
Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'target-alpha/helper.c')
-rw-r--r-- | target-alpha/helper.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/target-alpha/helper.c b/target-alpha/helper.c index a8aa782..e202fee 100644 --- a/target-alpha/helper.c +++ b/target-alpha/helper.c @@ -571,6 +571,8 @@ void QEMU_NORETURN dynamic_excp(CPUAlphaState *env, uintptr_t retaddr, env->error_code = error; if (retaddr) { cpu_restore_state(cs, retaddr); + /* Floating-point exceptions (our only users) point to the next PC. */ + env->pc += 4; } cpu_loop_exit(cs); } |