mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
target-alpha: Swap shadow registers moving to/from PALmode.
Signed-off-by: Richard Henderson <rth@twiddle.net>
This commit is contained in:
parent
3a6fa678bf
commit
21d2beaaef
3 changed files with 41 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue