Add QEMU_NORETURN to function cpu_resume_from_signal
PATCH 1/2 Add QEMU_NORETURN to function cpu_resume_from_signal
cpu_resume_from_signal terminates by calling longjmp.
Signed-off-by Stefan Weil <[email protected]>
--- exec-all.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
exec-all.h +1 -1
@@ -86,7 +86,7 @@ int cpu_gen_code(CPUArchState *env, struct TranslationBlock *tb, int *gen_code_size_ptr);int cpu_restore_state (struct TranslationBlock *tb,CPUArchState *env,unsigned long searched_pc); -void cpu_resume_from_signal (CPUArchState *env1,void *puc); +void QEMU_NORETURN cpu_resume_from_signal(CPUArchState *env1, void *puc);void cpu_io_recompile (CPUArchState *env,void *retaddr); TranslationBlock *tb_gen_code(CPUArchState *env, target_ulong pc, target_ulong cs_base, int flags,
Signature · 1 line
1.7.9
PATCH 2/2 Add QEMU_NORETURN to function cpu_io_recompile
cpu_io_recompile terminates by calling either cpu_abort or cpu_resume_from_signal which both never return.
Signed-off-by Stefan Weil <[email protected]>
--- exec-all.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
exec-all.h +1 -1
@@ -87,7 +87,7 @@ int cpu_gen_code(CPUArchState *env, struct TranslationBlock *tb,int cpu_restore_state (struct TranslationBlock *tb,CPUArchState *env,unsigned long searched_pc); void QEMU_NORETURN cpu_resume_from_signal(CPUArchState *env1, void *puc); -void cpu_io_recompile (CPUArchState *env,void *retaddr); +void QEMU_NORETURN cpu_io_recompile(CPUArchState *env, void *retaddr);TranslationBlock *tb_gen_code (CPUArchState *env,target_ulong pc,target_ulong cs_base,int flags,int cflags);
Signature · 1 line
1.7.9
Quoted 1 line · Stefan Weil
cpu_resume_from_signalterminates by calling longjmp.
Patch no longer applies, please rebase.
Quoted 23 lines
Signed-off-by Stefan Weil <[email protected]>---
exec-all.h | 2 +-1 files changed, 1 insertions(+), 1 deletions(-)exec-all.h +1
-2@@ -86,7 +86,7 @@ int cpu_gen_code(CPUArchState *env, struct TranslationBlock *tb, int *gen_code_size_ptr); int cpu_restore_state(struct TranslationBlock *tb, CPUArchState *env, unsigned long searched_pc); -void cpu_resume_from_signal (CPUArchState *env1,void *puc); +void QEMU_NORETURN cpu_resume_from_signal(CPUArchState *env1, void *puc); void cpu_io_recompile(CPUArchState *env, void *retaddr); TranslationBlock *tb_gen_code(CPUArchState *env, target_ulong pc, target_ulong cs_base, int flags, --1.7.9