Search
lxdream.org :: lxdream/src/xlat/x86/ia32abi.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/xlat/x86/ia32abi.h
changeset 1112:4cac5e474d4c
prev1067:d3c00ffccfcd
next1125:9dd5dee45db9
author nkeynes
date Tue Jul 13 18:23:16 2010 +1000 (11 years ago)
permissions -rw-r--r--
last change Rearrange the main translation loop to allow translated blocks to jump
directly to their successors without needing to return to the main loop
in between. Shaves about 6% off the core runtime.
file annotate diff log raw
1.1 --- a/src/xlat/x86/ia32abi.h Sun Jul 05 13:54:48 2009 +1000
1.2 +++ b/src/xlat/x86/ia32abi.h Tue Jul 13 18:23:16 2010 +1000
1.3 @@ -132,6 +132,8 @@
1.4
1.5 #endif
1.6
1.7 +#define PROLOGUE_SIZE 9
1.8 +
1.9 /**
1.10 * Emit the 'start of block' assembly. Sets up the stack frame and save
1.11 * SI/DI as required
1.12 @@ -142,6 +144,7 @@
1.13 {
1.14 PUSH_r32(REG_EBP);
1.15 SUBL_imms_r32( 8, REG_ESP );
1.16 + MOVP_immptr_rptr( ((uint8_t *)&sh4r) + 128, REG_EBP );
1.17 }
1.18
1.19 static inline void exit_block( )
.