Skip to contentSkip to conversation

Add QEMU_NORETURN to function cpu_resume_from_signal

PATCH Applied Stefan Weil 2 participants 3 messages Apr 7, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 Add QEMU_NORETURN to function cpu_resume_from_signal

cpu_resume_from_signal terminates by calling longjmp.

---
 exec-all.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
exec-all.h +1 -1
index a6d6519..4758d88 100644
@@ -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, uintptr_t 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
#1 lore raw

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.

---
 exec-all.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
exec-all.h +1 -1
index 4758d88..fa7bdfe 100644
@@ -87,7 +87,7 @@ int cpu_gen_code(CPUArchState *env, struct TranslationBlock *tb,
 int cpu_restore_state(struct TranslationBlock *tb,
                       CPUArchState *env, uintptr_t 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
Applied
#2 lore raw
In reply to Stefan Weil

Thanks, applied both.

Quoted 23 lines · Stefan Weil

cpu_resume_from_signal terminates by calling longjmp.

---
 exec-all.h |    2 +-

 1 files changed, 1 insertions(+), 1 deletions(-)
exec-all.h +1 -2
index a6d6519..4758d88 100644
@@ -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, uintptr_t 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