mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
target/hppa: Update IIAOQ, IIASQ for pa2.0
These registers have a different format for pa2.0. Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
8a02b9a68e
commit
b10700d826
2 changed files with 38 additions and 18 deletions
|
@ -80,6 +80,16 @@ void HELPER(rfi)(CPUHPPAState *env)
|
|||
env->iasq_b = (uint64_t)env->cr_back[0] << 32;
|
||||
env->iaoq_f = env->cr[CR_IIAOQ];
|
||||
env->iaoq_b = env->cr_back[1];
|
||||
|
||||
/*
|
||||
* For pa2.0, IIASQ is the top bits of the virtual address.
|
||||
* To recreate the space identifier, remove the offset bits.
|
||||
*/
|
||||
if (hppa_is_pa20(env)) {
|
||||
env->iasq_f &= ~env->iaoq_f;
|
||||
env->iasq_b &= ~env->iaoq_b;
|
||||
}
|
||||
|
||||
cpu_hppa_put_psw(env, env->cr[CR_IPSW]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue