mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
target-arm: A64: Break out aarch64_save/restore_sp
Break out code to save/restore AArch64 SP into functions. Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Reviewed-by: Greg Bellows <greg.bellows@linaro.org> Message-id: 1402994746-8328-2-git-send-email-edgar.iglesias@gmail.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
9db11cef8c
commit
9208b9617f
3 changed files with 24 additions and 24 deletions
|
@ -376,11 +376,7 @@ void HELPER(exception_return)(CPUARMState *env)
|
|||
uint32_t spsr = env->banked_spsr[spsr_idx];
|
||||
int new_el, i;
|
||||
|
||||
if (env->pstate & PSTATE_SP) {
|
||||
env->sp_el[cur_el] = env->xregs[31];
|
||||
} else {
|
||||
env->sp_el[0] = env->xregs[31];
|
||||
}
|
||||
aarch64_save_sp(env, cur_el);
|
||||
|
||||
env->exclusive_addr = -1;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue