mirror of
				https://github.com/yuzu-emu/unicorn.git
				synced 2025-11-04 13:24:57 +00:00 
			
		
		
		
	target/riscv: Report errors validating 2nd-stage PTEs
Backports commit 88914473e748db20d8e18b9735f647a683319fa6 from qemu
This commit is contained in:
		
							parent
							
								
									a6c323c912
								
							
						
					
					
						commit
						39ff690eff
					
				| 
						 | 
				
			
			@ -429,8 +429,13 @@ restart:
 | 
			
		|||
            hwaddr vbase;
 | 
			
		||||
 | 
			
		||||
            /* Do the second stage translation on the base PTE address. */
 | 
			
		||||
            get_physical_address(env, &vbase, &vbase_prot, base, MMU_DATA_LOAD,
 | 
			
		||||
                                 mmu_idx, false, true);
 | 
			
		||||
            int vbase_ret = get_physical_address(env, &vbase, &vbase_prot,
 | 
			
		||||
                                                 base, MMU_DATA_LOAD,
 | 
			
		||||
                                                 mmu_idx, false, true);
 | 
			
		||||
 | 
			
		||||
            if (vbase_ret != TRANSLATE_SUCCESS) {
 | 
			
		||||
                return vbase_ret;
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            pte_addr = vbase + idx * ptesize;
 | 
			
		||||
        } else {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue