target/arm: Expand syndrome parameter to raise_exception*
Prepare for raising exceptions with 64-bit syndromes. Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20251008215613.300150-12-richard.henderson@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
5a3197bc73
commit
9190d68e83
3 changed files with 6 additions and 6 deletions
|
|
@ -304,14 +304,14 @@ FIELD(CNTHCTL, CNTPMASK, 19, 1)
|
|||
* and never returns because we will longjump back up to the CPU main loop.
|
||||
*/
|
||||
G_NORETURN void raise_exception(CPUARMState *env, uint32_t excp,
|
||||
uint32_t syndrome, uint32_t target_el);
|
||||
uint64_t syndrome, uint32_t target_el);
|
||||
|
||||
/*
|
||||
* Similarly, but also use unwinding to restore cpu state.
|
||||
*/
|
||||
G_NORETURN void raise_exception_ra(CPUARMState *env, uint32_t excp,
|
||||
uint32_t syndrome, uint32_t target_el,
|
||||
uintptr_t ra);
|
||||
uint64_t syndrome, uint32_t target_el,
|
||||
uintptr_t ra);
|
||||
|
||||
/*
|
||||
* For AArch64, map a given EL to an index in the banked_spsr array.
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ void write_v7m_exception(CPUARMState *env, uint32_t new_exc)
|
|||
g_assert_not_reached();
|
||||
}
|
||||
|
||||
void raise_exception_ra(CPUARMState *env, uint32_t excp, uint32_t syndrome,
|
||||
void raise_exception_ra(CPUARMState *env, uint32_t excp, uint64_t syndrome,
|
||||
uint32_t target_el, uintptr_t ra)
|
||||
{
|
||||
g_assert_not_reached();
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ int exception_target_el(CPUARMState *env)
|
|||
}
|
||||
|
||||
void raise_exception(CPUARMState *env, uint32_t excp,
|
||||
uint32_t syndrome, uint32_t target_el)
|
||||
uint64_t syndrome, uint32_t target_el)
|
||||
{
|
||||
CPUState *cs = env_cpu(env);
|
||||
|
||||
|
|
@ -70,7 +70,7 @@ void raise_exception(CPUARMState *env, uint32_t excp,
|
|||
cpu_loop_exit(cs);
|
||||
}
|
||||
|
||||
void raise_exception_ra(CPUARMState *env, uint32_t excp, uint32_t syndrome,
|
||||
void raise_exception_ra(CPUARMState *env, uint32_t excp, uint64_t syndrome,
|
||||
uint32_t target_el, uintptr_t ra)
|
||||
{
|
||||
CPUState *cs = env_cpu(env);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue