mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
target-arm: Add 32/64-bit register sync
Add AArch32 to AArch64 register sychronization functions. Replace manual register synchronization with new functions in aarch64_cpu_do_interrupt() and HELPER(exception_return)(). Signed-off-by: Greg Bellows <greg.bellows@linaro.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Message-id: 1423736974-14254-4-git-send-email-greg.bellows@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
f313369fdb
commit
ce02049dbf
4 changed files with 216 additions and 8 deletions
|
@ -466,7 +466,6 @@ void aarch64_cpu_do_interrupt(CPUState *cs)
|
|||
unsigned int new_el = arm_excp_target_el(cs, cs->exception_index);
|
||||
target_ulong addr = env->cp15.vbar_el[new_el];
|
||||
unsigned int new_mode = aarch64_pstate_mode(new_el, true);
|
||||
int i;
|
||||
|
||||
if (arm_current_el(env) < new_el) {
|
||||
if (env->aarch64) {
|
||||
|
@ -530,9 +529,7 @@ void aarch64_cpu_do_interrupt(CPUState *cs)
|
|||
}
|
||||
env->elr_el[new_el] = env->regs[15];
|
||||
|
||||
for (i = 0; i < 15; i++) {
|
||||
env->xregs[i] = env->regs[i];
|
||||
}
|
||||
aarch64_sync_32_to_64(env);
|
||||
|
||||
env->condexec_bits = 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue