From bc09845431888a0a6a680c0feeca7c6a18f8ec43 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Sun, 18 Mar 2012 23:16:04 +0100 Subject: [PATCH] target-sparc: Add compiler attribute to some functions which don't return helper_raise_exception does not return, nor does do_unaligned_access. Cc: Blue Swirl Signed-off-by: Stefan Weil Signed-off-by: Blue Swirl --- target-sparc/cpu.h | 5 +++-- target-sparc/helper.h | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/target-sparc/cpu.h b/target-sparc/cpu.h index 1025752e8f..885ad45c3a 100644 --- a/target-sparc/cpu.h +++ b/target-sparc/cpu.h @@ -699,8 +699,9 @@ uint64_t cpu_tick_get_count(CPUTimer *timer); void cpu_tick_set_limit(CPUTimer *timer, uint64_t limit); trap_state* cpu_tsptr(CPUSPARCState* env); #endif -void do_unaligned_access(CPUSPARCState *env, target_ulong addr, int is_write, - int is_user, void *retaddr); +void QEMU_NORETURN do_unaligned_access(CPUSPARCState *env, target_ulong addr, + int is_write, int is_user, + void *retaddr); #define TB_FLAG_FPU_ENABLED (1 << 4) #define TB_FLAG_AM_ENABLED (1 << 5) diff --git a/target-sparc/helper.h b/target-sparc/helper.h index c4d6225102..e3c7fddbe8 100644 --- a/target-sparc/helper.h +++ b/target-sparc/helper.h @@ -78,7 +78,7 @@ DEF_HELPER_1(fcmpeq_fcc1, void, env) DEF_HELPER_1(fcmpeq_fcc2, void, env) DEF_HELPER_1(fcmpeq_fcc3, void, env) #endif -DEF_HELPER_2(raise_exception, void, env, int) +DEF_HELPER_2(raise_exception, noreturn, env, int) #define F_HELPER_0_1(name) DEF_HELPER_1(f ## name, void, env) DEF_HELPER_3(faddd, f64, env, f64, f64)