[6757] Keep SLB in-CPU
Revision: 6757
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6757 Author: blueswir1 Date: 2009-03-07 20:57:42 +0000 (Sat, 07 Mar 2009)
Log Message:
-----------
Keep SLB in-CPU
Real 970 CPUs have the SLB not memory backed, but inside the CPU. This breaks bridge mode for 970 for now, but at least keeps us from overwriting physical addresses 0x0 - 0x300, rendering our interrupt handlers useless.
I put in a stub for bridge mode operation that could be enabled easily, but for now it's safer to leave that off I guess (970fx doesn't have bridge mode AFAIK).
Modified Paths:
--------------
trunk/target-ppc/cpu.h
trunk/target-ppc/helper.c
trunk/target-ppc/translate_init.c
Modified: trunk/target-ppc/cpu.h
===================================================================
target-ppc/cpu.h +7 -0
@@ -344,6 +344,12 @@ppcemb_tlb_t tlbe; }; +typedef struct ppc_slb_t ppc_slb_t ; +struct ppc_slb_t { +uint64_t tmp64; +uint32_t tmp; +}; +/*****************************************************************************/ /* Machine state register bits definition */ #define MSR_SF 63/* Sixty-four-bit mode hflags */
@@ -584,6 +590,7 @@/* Address space register */ target_ulong asr;/* PowerPC 64 SLB area */ +ppc_slb_t slb[64 ];int slb_nr;#endif /* segment registers */
Modified: trunk/target-ppc/helper.c
===================================================================
target-ppc/helper.c +68 -62
224 lines not on this page · raw message
Modified: trunk/target-ppc/translate_init.c
===================================================================
target-ppc/translate_init.c +1 -1
@@ -6056,7 +6056,7 @@ &spr_read_generic, &spr_write_generic, 0x00000000);#if !defined(CONFIG_USER_ONLY ) - env->slb_nr =32 ; + env->slb_nr =64 ;#endif init_excp_970 (env); env->dcache_line_size =128 ;