diff options
Diffstat (limited to 'softmmu_header.h')
-rw-r--r-- | softmmu_header.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/softmmu_header.h b/softmmu_header.h index a1b3808..f96b512 100644 --- a/softmmu_header.h +++ b/softmmu_header.h @@ -41,8 +41,16 @@ #if ACCESS_TYPE < (NB_MMU_MODES) -#define CPU_MMU_INDEX ACCESS_TYPE +#if defined(OUTSIDE_JIT) +/* Dispatch calls to __ldx_outside_jit / __stx_outside_jit, which don't + * expect CPU environment. to be cached in ebp register, but rather uses + * cpu_single_env variable for that purpose. + */ +#define MMUSUFFIX _outside_jit +#else // OUTSIDE_JIT #define MMUSUFFIX _mmu +#endif // OUTSIDE_JIT +#define CPU_MMU_INDEX ACCESS_TYPE #elif ACCESS_TYPE == (NB_MMU_MODES) |