target-mips: Add compiler attribute to some functions which don't return
authorStefan Weil <sw@weilnetz.de>
Sun, 18 Mar 2012 22:16:03 +0000 (23:16 +0100)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 24 Mar 2012 13:02:43 +0000 (13:02 +0000)
helper_raise_exception_err does not return, nor do helper_raise_exception
and do_unaligned_access.

Cc: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Reviewed-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
target-mips/helper.h
target-mips/op_helper.c

index 442f684697fd8691d021fe342ec23813d574e220..76fb451e77603ab6a0b5a066455a54cc04264922 100644 (file)
@@ -1,7 +1,7 @@
 #include "def-helper.h"
 
-DEF_HELPER_2(raise_exception_err, void, i32, int)
-DEF_HELPER_1(raise_exception, void, i32)
+DEF_HELPER_2(raise_exception_err, noreturn, i32, int)
+DEF_HELPER_1(raise_exception, noreturn, i32)
 
 #ifdef TARGET_MIPS64
 DEF_HELPER_3(ldl, tl, tl, tl, int)
index 3a207312a455cf89298717e57c50d9a6ff4faeea..ce01225e6c1772a88f00c8e69c305dcf82c2a0bb 100644 (file)
@@ -2292,7 +2292,8 @@ void helper_wait (void)
 
 #if !defined(CONFIG_USER_ONLY)
 
-static void do_unaligned_access (target_ulong addr, int is_write, int is_user, void *retaddr);
+static void QEMU_NORETURN do_unaligned_access(target_ulong addr, int is_write,
+                                              int is_user, void *retaddr);
 
 #define MMUSUFFIX _mmu
 #define ALIGNED_ONLY