diff options
author | Richard Henderson | 2011-04-18 23:07:59 +0200 |
---|---|---|
committer | Richard Henderson | 2011-05-31 19:18:05 +0200 |
commit | 21d2beaaef6f99f14022fad98fe2ab189fc1c657 (patch) | |
tree | 0e4234ceaffc2be01402835667fea1d31354def2 /target-alpha/op_helper.c | |
parent | target-alpha: Implement do_interrupt for system mode. (diff) | |
download | qemu-21d2beaaef6f99f14022fad98fe2ab189fc1c657.tar.gz qemu-21d2beaaef6f99f14022fad98fe2ab189fc1c657.tar.xz qemu-21d2beaaef6f99f14022fad98fe2ab189fc1c657.zip |
target-alpha: Swap shadow registers moving to/from PALmode.
Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'target-alpha/op_helper.c')
-rw-r--r-- | target-alpha/op_helper.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/target-alpha/op_helper.c b/target-alpha/op_helper.c index fc5020ad24..03b5091234 100644 --- a/target-alpha/op_helper.c +++ b/target-alpha/op_helper.c @@ -1189,9 +1189,12 @@ uint64_t helper_cvtqg (uint64_t a) void helper_hw_ret (uint64_t a) { env->pc = a & ~3; - env->pal_mode = a & 1; env->intr_flag = 0; env->lock_addr = -1; + if ((a & 1) == 0) { + env->pal_mode = 0; + swap_shadow_regs(env); + } } #endif |