mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
target/m68k: Mark helper_raise_exception as noreturn
Also mark raise_exception_ra and raise_exception, lest we generate a warning about helper_raise_exception returning. Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20220602013401.303699-18-richard.henderson@linaro.org> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
This commit is contained in:
parent
dc3e83d5b1
commit
36a0ab595f
2 changed files with 4 additions and 3 deletions
|
@ -532,7 +532,8 @@ bool m68k_cpu_exec_interrupt(CPUState *cs, int interrupt_request)
|
|||
|
||||
#endif /* !CONFIG_USER_ONLY */
|
||||
|
||||
static void raise_exception_ra(CPUM68KState *env, int tt, uintptr_t raddr)
|
||||
G_NORETURN static void
|
||||
raise_exception_ra(CPUM68KState *env, int tt, uintptr_t raddr)
|
||||
{
|
||||
CPUState *cs = env_cpu(env);
|
||||
|
||||
|
@ -540,7 +541,7 @@ static void raise_exception_ra(CPUM68KState *env, int tt, uintptr_t raddr)
|
|||
cpu_loop_exit_restore(cs, raddr);
|
||||
}
|
||||
|
||||
static void raise_exception(CPUM68KState *env, int tt)
|
||||
G_NORETURN static void raise_exception(CPUM68KState *env, int tt)
|
||||
{
|
||||
raise_exception_ra(env, tt, 0);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue