Search
lxdream.org :: lxdream :: r908:a00debcf2600
lxdream 0.9.1
released Jun 29
Download Now
changeset908:a00debcf2600
parent907:5ecafd8d7923
child909:b4a21af8ce8c
authornkeynes
dateThu Oct 30 05:50:21 2008 +0000 (11 years ago)
Fix x86-64 build (typos et al)
Remove Push/pop ebx - don't really need it and saves adding more target-specific asm
src/sh4/ia64abi.h
src/sh4/sh4x86.in
1.1 --- a/src/sh4/ia64abi.h Thu Oct 30 05:42:24 2008 +0000
1.2 +++ b/src/sh4/ia64abi.h Thu Oct 30 05:50:21 2008 +0000
1.3 @@ -97,7 +97,7 @@
1.4 /* mov &sh4r, ebp */
1.5 load_ptr( R_EBP, ((uint8_t *)&sh4r) + 128 );
1.6 }
1.7 -XS
1.8 +
1.9 /**
1.10 * Exit the block with sh4r.pc already written
1.11 */
1.12 @@ -260,7 +260,7 @@
1.13 return _URC_NO_REASON;
1.14 }
1.15
1.16 -void *xlat_get_native_pc()
1.17 +void *xlat_get_native_pc( void *code, uint32_t size )
1.18 {
1.19 struct _Unwind_Exception exc;
1.20
2.1 --- a/src/sh4/sh4x86.in Thu Oct 30 05:42:24 2008 +0000
2.2 +++ b/src/sh4/sh4x86.in Thu Oct 30 05:50:21 2008 +0000
2.3 @@ -109,13 +109,9 @@
2.4 {
2.5 uint32_t features;
2.6
2.7 - // Note: Include the push/pop ebx sequence in case of PIC builds. This
2.8 - // isn't exactly on a critical path anyway
2.9 __asm__ __volatile__(
2.10 - "pushl %%ebx\n\t"
2.11 "mov $0x01, %%eax\n\t"
2.12 - "cpuid\n\t"
2.13 - "popl %%ebx" : "=c" (features) : : "eax", "edx");
2.14 + "cpuid\n\t" : "=c" (features) : : "eax", "edx", "ebx");
2.15 return (features & 1) ? TRUE : FALSE;
2.16 }
2.17
.