]> Git Repo - qemu.git/commitdiff
ARM: fix segfault
authorBlue Swirl <[email protected]>
Sat, 8 Oct 2011 10:00:02 +0000 (10:00 +0000)
committerBlue Swirl <[email protected]>
Sat, 8 Oct 2011 10:00:02 +0000 (10:00 +0000)
Fix a bug in bccd9ec5f098668576342c83d90d6d6833d61d33,
target-arm/op_helper.c missed a change unlike all other targets.
This lead to a NULL pointer dereferences.

Reviewed-by: Peter Maydell <[email protected]>
Signed-off-by: Blue Swirl <[email protected]>
target-arm/op_helper.c

index ab9c9239d3a28478727cfbe54ec80ecc245e02af..1892b35ecc2db3fc09a8ea5baac2355013c44567 100644 (file)
@@ -84,6 +84,7 @@ void tlb_fill(CPUState *env1, target_ulong addr, int is_write, int mmu_idx,
     int ret;
 
     saved_env = env;
+    env = env1;
     ret = cpu_arm_handle_mmu_fault(env, addr, is_write, mmu_idx);
     if (unlikely(ret)) {
         if (retaddr) {
This page took 0.027732 seconds and 4 git commands to generate.