From 3ebf5aafe562158b59aff2ee49cbcf54332cbb23 Mon Sep 17 00:00:00 2001 From: blueswir1 Date: Wed, 28 Nov 2007 20:54:33 +0000 Subject: Use slavio base as boot prom address, rearrange sun4m init code git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3747 c046a42c-6fe2-441c-8c8c-71466251a162 --- target-sparc/helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'target-sparc/helper.c') diff --git a/target-sparc/helper.c b/target-sparc/helper.c index 0ebc365e26..a1daed8b7c 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; } -- cgit v1.2.1