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
|
@ -465,7 +465,7 @@ void HELPER(exception_return)(CPUARMState *env)
|
|||
int cur_el = arm_current_el(env);
|
||||
unsigned int spsr_idx = aarch64_banked_spsr_index(cur_el);
|
||||
uint32_t spsr = env->banked_spsr[spsr_idx];
|
||||
int new_el, i;
|
||||
int new_el;
|
||||
|
||||
aarch64_save_sp(env, cur_el);
|
||||
|
||||
|
@ -491,9 +491,7 @@ void HELPER(exception_return)(CPUARMState *env)
|
|||
if (!arm_singlestep_active(env)) {
|
||||
env->uncached_cpsr &= ~PSTATE_SS;
|
||||
}
|
||||
for (i = 0; i < 15; i++) {
|
||||
env->regs[i] = env->xregs[i];
|
||||
}
|
||||
aarch64_sync_64_to_32(env);
|
||||
|
||||
env->regs[15] = env->elr_el[1] & ~0x1;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue