Search
lxdream.org :: lxdream/src/sh4/sh4x86.in :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4x86.in
changeset 1301:b76840ccf94b
prev1298:d0eb2307b847
author nkeynes
date Wed May 27 09:42:24 2015 +1000 (5 years ago)
permissions -rw-r--r--
last change Fix stack alignment when calling the end-block callback (broken on OS X)
file annotate diff log raw
1.1 --- a/src/sh4/sh4x86.in Wed Feb 04 08:38:23 2015 +1000
1.2 +++ b/src/sh4/sh4x86.in Wed May 27 09:42:24 2015 +1000
1.3 @@ -519,9 +519,6 @@
1.4 }
1.5 JNE_label(wrongmode);
1.6 if( sh4_x86.end_callback ) {
1.7 - /* Note this does leave the stack out of alignment, but doesn't matter
1.8 - * for what we're currently using it for.
1.9 - */
1.10 PUSH_r32(REG_EAX);
1.11 MOVP_immptr_rptr(sh4_x86.end_callback, REG_ECX);
1.12 JMP_rptr(REG_ECX);
1.13 @@ -618,11 +615,9 @@
1.14 static void exit_block()
1.15 {
1.16 if( sh4_x86.end_callback ) {
1.17 - MOVP_immptr_rptr(sh4_x86.end_callback, REG_ECX);
1.18 - JMP_rptr(REG_ECX);
1.19 - } else {
1.20 - RET();
1.21 + CALL_ptr(sh4_x86.end_callback);
1.22 }
1.23 + RET();
1.24 }
1.25
1.26 /**
.