target-sh4: fix index of address read error exception
Exception index of address read error should be 0x0e0. Signed-off-by: Alexandre Courbot <gnurou@gmail.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
		
							parent
							
								
									e40a67beed
								
							
						
					
					
						commit
						bec43cc3b6
					
				| 
						 | 
				
			
			@ -479,7 +479,7 @@ int cpu_sh4_handle_mmu_fault(CPUState * env, target_ulong address, int rw,
 | 
			
		|||
	    break;
 | 
			
		||||
	case MMU_IADDR_ERROR:
 | 
			
		||||
	case MMU_DADDR_ERROR_READ:
 | 
			
		||||
	    env->exception_index = 0x0c0;
 | 
			
		||||
	    env->exception_index = 0x0e0;
 | 
			
		||||
	    break;
 | 
			
		||||
	case MMU_DADDR_ERROR_WRITE:
 | 
			
		||||
	    env->exception_index = 0x100;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue