diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2014-03-28 11:19:35 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2014-06-05 16:05:52 +0200 |
commit | ca0aa408167888d862df3e7f734f6b7b35bd556d (patch) | |
tree | 824cc8b0eccbdf06c7e92827ff51dfbbee3d4002 /include/exec/softmmu_header.h | |
parent | a6c9eac0d57d29bce82200175f9a4ef03c2c6bca (diff) |
softmmu: move definition of CPU_MMU_INDEX to inclusion site, drop ACCESS_TYPE
Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/exec/softmmu_header.h')
-rw-r--r-- | include/exec/softmmu_header.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/include/exec/softmmu_header.h b/include/exec/softmmu_header.h index cc85a43685..bb18f97024 100644 --- a/include/exec/softmmu_header.h +++ b/include/exec/softmmu_header.h @@ -47,16 +47,6 @@ #error unsupported data size #endif -#if ACCESS_TYPE < (NB_MMU_MODES) -#define CPU_MMU_INDEX ACCESS_TYPE -#elif ACCESS_TYPE == (NB_MMU_MODES) -#define CPU_MMU_INDEX (cpu_mmu_index(env)) -#elif ACCESS_TYPE == (NB_MMU_MODES + 1) -#define CPU_MMU_INDEX (cpu_mmu_index(env)) -#else -#error invalid ACCESS_TYPE -#endif - #if DATA_SIZE == 8 #define RES_TYPE uint64_t #else @@ -199,6 +189,5 @@ static inline void glue(cpu_stfl, MEMSUFFIX)(CPUArchState *env, #undef SUFFIX #undef USUFFIX #undef DATA_SIZE -#undef CPU_MMU_INDEX #undef MMUSUFFIX #undef ADDR_READ |