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
This commit is contained in:
parent
76db3ba44e
commit
b4cec7b455
|
@ -1510,10 +1510,7 @@ int cpu_ppc_handle_mmu_fault (CPUState *env, target_ulong address, int rw,
|
||||||
access_type = ACCESS_CODE;
|
access_type = ACCESS_CODE;
|
||||||
} else {
|
} else {
|
||||||
/* data access */
|
/* data access */
|
||||||
/* XXX: put correct access by using cpu_restore_state()
|
access_type = env->access_type;
|
||||||
correctly */
|
|
||||||
access_type = ACCESS_INT;
|
|
||||||
// access_type = env->access_type;
|
|
||||||
}
|
}
|
||||||
ret = get_physical_address(env, &ctx, address, rw, access_type);
|
ret = get_physical_address(env, &ctx, address, rw, access_type);
|
||||||
if (ret == 0) {
|
if (ret == 0) {
|
||||||
|
|
Loading…
Reference in a new issue