Search
lxdream.org :: lxdream/src/sh4/ia32abi.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/ia32abi.h
changeset 669:ab344e42bca9
prev604:1024c3a9cb88
next736:a02d1475ccfd
author nkeynes
date Mon May 12 10:00:13 2008 +0000 (15 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/ia32abi.h Tue Jan 22 11:30:37 2008 +0000
1.2 +++ b/src/sh4/ia32abi.h Mon May 12 10:00:13 2008 +0000
1.3 @@ -98,7 +98,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 @@ -282,7 +282,7 @@
1.13 "frame_found: movl 0x4(%%eax), %0\n"
1.14 "frame_not_found:"
1.15 : "=r" (result)
1.16 - : "r" (&sh4r)
1.17 + : "r" (((uint8_t *)&sh4r) + 128 )
1.18 : "eax", "ecx", "edx" );
1.19 return result;
1.20 }
.