From 21d2beaaef6f99f14022fad98fe2ab189fc1c657 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Mon, 18 Apr 2011 14:07:59 -0700 Subject: target-alpha: Swap shadow registers moving to/from PALmode. Signed-off-by: Richard Henderson --- target-alpha/op_helper.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'target-alpha/op_helper.c') 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 -- cgit v1.2.3-55-g7522