aboutsummaryrefslogtreecommitdiff
path: root/target-sparc/helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'target-sparc/helper.c')
-rw-r--r--target-sparc/helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-sparc/helper.c b/target-sparc/helper.c
index 0ebc365..a1daed8 100644
--- a/target-sparc/helper.c
+++ b/target-sparc/helper.c
@@ -115,7 +115,7 @@ int get_physical_address (CPUState *env, target_phys_addr_t *physical, int *prot
if ((env->mmuregs[0] & MMU_E) == 0) { /* MMU disabled */
// Boot mode: instruction fetches are taken from PROM
if (rw == 2 && (env->mmuregs[0] & env->mmu_bm)) {
- *physical = 0xff0000000ULL | (address & 0x3ffffULL);
+ *physical = env->prom_addr | (address & 0x3ffffULL);
*prot = PAGE_READ | PAGE_EXEC;
return 0;
}