filename | src/xlat/x86/amd64abi.h |
changeset | 1112:4cac5e474d4c |
prev | 1067:d3c00ffccfcd |
next | 1125:9dd5dee45db9 |
author | nkeynes |
date | Tue Jul 13 18:23:16 2010 +1000 (13 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/amd64abi.h Sun Jul 05 13:54:48 2009 +10001.2 +++ b/src/xlat/x86/amd64abi.h Tue Jul 13 18:23:16 2010 +10001.3 @@ -94,6 +94,8 @@1.4 CALL_r32disp(preg, disp);1.5 }1.7 +#define PROLOGUE_SIZE 151.8 +1.9 /**1.10 * Emit the 'start of block' assembly. Sets up the stack frame and save1.11 * SI/DI as required1.12 @@ -102,6 +104,7 @@1.13 {1.14 PUSH_r32(REG_RBP);1.15 SUBQ_imms_r64( 16, REG_RSP );1.16 + MOVP_immptr_rptr( ((uint8_t *)&sh4r) + 128, REG_EBP );1.17 }1.19 static inline void exit_block( )
.