revision 908:a00debcf2600
summary |
tree |
shortlog |
changelog |
graph |
changeset |
raw | bz2 | zip | gz changeset | 908:a00debcf2600 |
parent | 907:5ecafd8d7923 |
child | 909:b4a21af8ce8c |
author | nkeynes |
date | Thu Oct 30 05:50:21 2008 +0000 (13 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
Remove Push/pop ebx - don't really need it and saves adding more target-specific asm
![]() | src/sh4/ia64abi.h | view | annotate | diff | log | |
![]() | src/sh4/sh4x86.in | view | annotate | diff | log |
1.1 --- a/src/sh4/ia64abi.h Thu Oct 30 05:42:24 2008 +00001.2 +++ b/src/sh4/ia64abi.h Thu Oct 30 05:50:21 2008 +00001.3 @@ -97,7 +97,7 @@1.4 /* mov &sh4r, ebp */1.5 load_ptr( R_EBP, ((uint8_t *)&sh4r) + 128 );1.6 }1.7 -XS1.8 +1.9 /**1.10 * Exit the block with sh4r.pc already written1.11 */1.12 @@ -260,7 +260,7 @@1.13 return _URC_NO_REASON;1.14 }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;
2.1 --- a/src/sh4/sh4x86.in Thu Oct 30 05:42:24 2008 +00002.2 +++ b/src/sh4/sh4x86.in Thu Oct 30 05:50:21 2008 +00002.3 @@ -109,13 +109,9 @@2.4 {2.5 uint32_t features;2.7 - // Note: Include the push/pop ebx sequence in case of PIC builds. This2.8 - // isn't exactly on a critical path anyway2.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 }
.