Search
lxdream.org :: lxdream/src/sh4/mmu.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/mmu.c
changeset 1198:407659e01ef0
prev1173:49207ef698e1
next1202:01ae5cbad4c8
author Nathan Keynes <nkeynes@lxdream.org>
date Fri Dec 16 10:08:45 2011 +1000 (8 years ago)
permissions -rw-r--r--
last change Add volatile qualifier to return-address frobbing - works around optimizer
bug in GCC versions after 4.2
file annotate diff log raw
1.1 --- a/src/sh4/mmu.c Wed May 11 19:20:42 2011 +1000
1.2 +++ b/src/sh4/mmu.c Fri Dec 16 10:08:45 2011 +1000
1.3 @@ -1199,7 +1199,7 @@
1.4
1.5 /********************** TLB Direct-Access Regions ***************************/
1.6 #ifdef HAVE_FRAME_ADDRESS
1.7 -#define EXCEPTION_EXIT() do{ *(((void **)__builtin_frame_address(0))+1) = exc; } while(0)
1.8 +#define EXCEPTION_EXIT() do{ *(((void * volatile *)__builtin_frame_address(0))+1) = exc; } while(0)
1.9 #else
1.10 #define EXCEPTION_EXIT() sh4_core_exit(CORE_EXIT_EXCEPTION)
1.11 #endif
.