diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-11-22 17:56:56 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-12-20 17:44:57 +0100 |
commit | 166a4b6e43b8904a150a946243457b7db9567c67 (patch) | |
tree | c0b96a5f96e160ab489ec255eb20eb77e0cf5312 /bsd-user/riscv | |
parent | b74c89815841abd80cca9d2bba13b19afb62d1ca (diff) | |
download | qemu-166a4b6e43b8904a150a946243457b7db9567c67.zip qemu-166a4b6e43b8904a150a946243457b7db9567c67.tar.gz qemu-166a4b6e43b8904a150a946243457b7db9567c67.tar.bz2 |
user: Declare cpu_loop() once in 'user/cpu_loop.h'
Declare cpu_loop() once in "user/cpu_loop.h".
bsd-user gets the G_NORETURN attribute.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20241212185341.2857-18-philmd@linaro.org>
Diffstat (limited to 'bsd-user/riscv')
-rw-r--r-- | bsd-user/riscv/target_arch_cpu.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bsd-user/riscv/target_arch_cpu.h b/bsd-user/riscv/target_arch_cpu.h index a93ea39..ef92f00 100644 --- a/bsd-user/riscv/target_arch_cpu.h +++ b/bsd-user/riscv/target_arch_cpu.h @@ -37,7 +37,7 @@ static inline void target_cpu_init(CPURISCVState *env, env->pc = regs->sepc; } -static inline void target_cpu_loop(CPURISCVState *env) +static inline G_NORETURN void target_cpu_loop(CPURISCVState *env) { CPUState *cs = env_cpu(env); int trapnr; |