Skip to content
Snippets Groups Projects
Commit abf489be authored by Helge Deller's avatar Helge Deller Committed by Michael Tokarev
Browse files

target/hppa: Fix IOR and ISR on unaligned access trap


Put correct values (depending on CPU arch) into IOR and ISR on fault.

Signed-off-by: default avatarHelge Deller <deller@gmx.de>
Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
(cherry picked from commit 910ada0225d17530188aa45afcb9412c17267f46)
Signed-off-by: default avatarMichael Tokarev <mjt@tls.msk.ru>
parent 4b3064ec
No related branches found
No related tags found
No related merge requests found
......@@ -110,11 +110,7 @@ void hppa_cpu_do_unaligned_access(CPUState *cs, vaddr addr,
CPUHPPAState *env = &cpu->env;
cs->exception_index = EXCP_UNALIGN;
if (env->psw & PSW_Q) {
/* ??? Needs tweaking for hppa64. */
env->cr[CR_IOR] = addr;
env->cr[CR_ISR] = addr >> 32;
}
hppa_set_ior_and_isr(env, addr, MMU_IDX_MMU_DISABLED(mmu_idx));
cpu_loop_exit_restore(cs, retaddr);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment