diff options
author | Stefan Weil <sw@weilnetz.de> | 2012-03-18 23:16:04 +0100 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2012-03-24 13:02:56 +0000 |
commit | bc09845431888a0a6a680c0feeca7c6a18f8ec43 (patch) | |
tree | b74e0132cea22c2285e610d773e48fa150cfba33 | |
parent | 59821ae8025dbf61323343fc074513d30013c9c0 (diff) |
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 <blauwirbel@gmail.com>
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
-rw-r--r-- | target-sparc/cpu.h | 5 | ||||
-rw-r--r-- | 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) |