ARM: fix segfault
Fix a bug in bccd9ec5f0,
target-arm/op_helper.c missed a change unlike all other targets.
This lead to a NULL pointer dereferences.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
			
			
This commit is contained in:
		
							parent
							
								
									e4fc8781db
								
							
						
					
					
						commit
						6e19a1379d
					
				| 
						 | 
				
			
			@ -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) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue