Search
lxdream.org :: lxdream/src/sh4/ia64abi.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/ia64abi.h
changeset 669:ab344e42bca9
prev605:6ecdb604306b
next670:5d277b7ad0df
author nkeynes
date Mon May 12 10:00:13 2008 +0000 (12 years ago)
permissions -rw-r--r--
last change Cleanup most of the -Wall warnings (getting a bit sloppy...)
Convert FP code to use fixed banks rather than indirect pointer
(3-4% faster this way now)
file annotate diff log raw
1.1 --- a/src/sh4/ia64abi.h Fri Jan 25 05:38:26 2008 +0000
1.2 +++ b/src/sh4/ia64abi.h Mon May 12 10:00:13 2008 +0000
1.3 @@ -95,7 +95,7 @@
1.4 {
1.5 PUSH_r32(R_EBP);
1.6 /* mov &sh4r, ebp */
1.7 - load_ptr( R_EBP, &sh4r );
1.8 + load_ptr( R_EBP, ((uint8_t *)&sh4r) + 128 );
1.9
1.10 sh4_x86.in_delay_slot = FALSE;
1.11 sh4_x86.priv_checked = FALSE;
1.12 @@ -259,7 +259,8 @@
1.13 _Unwind_Reason_Code xlat_check_frame( struct _Unwind_Context *context, void *arg )
1.14 {
1.15 void *rbp = (void *)_Unwind_GetGR(context, 6);
1.16 - if( rbp == (void *)&sh4r ) {
1.17 + void *expect = (((uint8_t *)&sh4r) + 128 )
1.18 + if( rbp == expect ) {
1.19 void **result = (void **)arg;
1.20 *result = (void *)_Unwind_GetIP(context);
1.21 return _URC_NORMAL_STOP;
.