diff options
Diffstat (limited to 'target-cris')
-rw-r--r-- | target-cris/op_helper.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/target-cris/op_helper.c b/target-cris/op_helper.c index 0cfe1b1870..1eacc5fd7f 100644 --- a/target-cris/op_helper.c +++ b/target-cris/op_helper.c @@ -56,17 +56,16 @@ 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; CPUState *saved_env; unsigned long pc; int ret; - /* XXX: hack to restore env in all cases, even if not called from - generated code */ saved_env = env; - env = cpu_single_env; + env = env1; D_LOG("%s pc=%x tpc=%x ra=%x\n", __func__, env->pc, env->debug1, retaddr); |