Commit b4cec7b455daa6bdc51df8db6bce8d252647440f

Authored by aurel32
1 parent 76db3ba4

target-ppc: enable access type in MMU

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5950 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 4 deletions
target-ppc/helper.c
@@ -1510,10 +1510,7 @@ int cpu_ppc_handle_mmu_fault (CPUState *env, target_ulong address, int rw, @@ -1510,10 +1510,7 @@ int cpu_ppc_handle_mmu_fault (CPUState *env, target_ulong address, int rw,
1510 access_type = ACCESS_CODE; 1510 access_type = ACCESS_CODE;
1511 } else { 1511 } else {
1512 /* data access */ 1512 /* data access */
1513 - /* XXX: put correct access by using cpu_restore_state()  
1514 - correctly */  
1515 - access_type = ACCESS_INT;  
1516 - // access_type = env->access_type; 1513 + access_type = env->access_type;
1517 } 1514 }
1518 ret = get_physical_address(env, &ctx, address, rw, access_type); 1515 ret = get_physical_address(env, &ctx, address, rw, access_type);
1519 if (ret == 0) { 1516 if (ret == 0) {