diff options
Diffstat (limited to 'target-i386')
-rw-r--r-- | target-i386/op_helper.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/target-i386/op_helper.c b/target-i386/op_helper.c index 1fc248fa17..3bb5a919ce 100644 --- a/target-i386/op_helper.c +++ b/target-i386/op_helper.c @@ -4997,17 +4997,16 @@ void helper_boundl(target_ulong a0, int v) NULL, it means that the function was called in C code (i.e. not from generated code or from helper.c) */ /* XXX: fix it to restore all registers */ -void tlb_fill(target_ulong addr, int is_write, int mmu_idx, void *retaddr) +void tlb_fill(CPUState *env1, target_ulong addr, int is_write, int mmu_idx, + void *retaddr) { TranslationBlock *tb; int ret; unsigned long pc; CPUX86State *saved_env; - /* XXX: hack to restore env in all cases, even if not called from - generated code */ saved_env = env; - env = cpu_single_env; + env = env1; ret = cpu_x86_handle_mmu_fault(env, addr, is_write, mmu_idx); if (ret) { |