mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
include/exec: Change cpu_mmu_index argument to CPUState
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
@@ -311,7 +311,7 @@ CPUArchState *cpu_copy(CPUArchState *env);
|
||||
#define TLB_MMIO (1 << (TARGET_PAGE_BITS_MIN - 2))
|
||||
#define TLB_WATCHPOINT 0
|
||||
|
||||
static inline int cpu_mmu_index(CPUArchState *env, bool ifetch)
|
||||
static inline int cpu_mmu_index(CPUState *cs, bool ifetch)
|
||||
{
|
||||
return MMU_USER_IDX;
|
||||
}
|
||||
|
||||
@@ -275,9 +275,8 @@ static inline CPUState *env_cpu(CPUArchState *env)
|
||||
* The user-only version of this function is inline in cpu-all.h,
|
||||
* where it always returns MMU_USER_IDX.
|
||||
*/
|
||||
static inline int cpu_mmu_index(CPUArchState *env, bool ifetch)
|
||||
static inline int cpu_mmu_index(CPUState *cs, bool ifetch)
|
||||
{
|
||||
CPUState *cs = env_cpu(env);
|
||||
int ret = cs->cc->mmu_index(cs, ifetch);
|
||||
tcg_debug_assert(ret >= 0 && ret < NB_MMU_MODES);
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user