Search
lxdream.org :: lxdream/src/sh4/ia32abi.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/ia32abi.h
changeset 907:5ecafd8d7923
prev906:268ea359f884
next926:68f3e0fe02f1
author nkeynes
date Thu Oct 30 05:42:24 2008 +0000 (11 years ago)
permissions -rw-r--r--
last change Fix ia32abi after FASTCALL changes
file annotate diff log raw
1.1 --- a/src/sh4/ia32abi.h Thu Oct 30 00:06:49 2008 +0000
1.2 +++ b/src/sh4/ia32abi.h Thu Oct 30 05:42:24 2008 +0000
1.3 @@ -28,8 +28,8 @@
1.4 */
1.5 static inline void call_func0( void *ptr )
1.6 {
1.7 - load_imm32(R_EAX, (uint32_t)ptr);
1.8 - CALL_r32(R_EAX);
1.9 + load_imm32(R_ECX, (uint32_t)ptr);
1.10 + CALL_r32(R_ECX);
1.11 }
1.12
1.13 #ifdef HAVE_FASTCALL
1.14 @@ -257,8 +257,8 @@
1.15 MUL_r32( R_EDX );
1.16 ADD_r32_sh4r( R_EAX, REG_OFFSET(slice_cycle) );
1.17
1.18 - call_func0( sh4_raise_exception );
1.19 - ADD_imm8s_r32( 4, R_ESP );
1.20 + POP_r32( R_EAX );
1.21 + call_func1( sh4_raise_exception, R_EAX );
1.22 load_spreg( R_EAX, R_PC );
1.23 if( sh4_x86.tlb_on ) {
1.24 call_func1(xlat_get_code_by_vma,R_EAX);
.