Search
lxdream.org :: lxdream/src/sh4/sh4trans.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4trans.h
changeset 926:68f3e0fe02f1
prev905:4c17ebd9ef5e
next941:c67574ed4355
author nkeynes
date Sun Dec 14 07:50:48 2008 +0000 (11 years ago)
permissions -rw-r--r--
last change Setup a 'proper' stackframe in translated blocks. This doesn't affect performance noticeably,
but does ensure that
a) The stack is aligned correctly on OS X with no extra effort, and
b) We can't mess up the stack and crash that way anymore.
Replace all PUSH/POP instructions (outside of prologue/epilogue) with ESP-rel moves to stack
local variables.
Finally merge ia32mac and ia32abi together, since they're pretty much the same now anyway (and
thereby simplifying maintenance a good deal)
file annotate diff log raw
1.1 --- a/src/sh4/sh4trans.h Wed Oct 29 23:51:58 2008 +0000
1.2 +++ b/src/sh4/sh4trans.h Sun Dec 14 07:50:48 2008 +0000
1.3 @@ -34,7 +34,7 @@
1.4 /** Maximum size of the translation epilogue (current real size is 116 bytes, so
1.5 * allows a little room
1.6 */
1.7 -#define EPILOGUE_SIZE 128
1.8 +#define EPILOGUE_SIZE 136
1.9
1.10 /** Maximum number of recovery records for a translated block (2048 based on
1.11 * 1 record per SH4 instruction in a 4K page).
.