Commit 4e98d8cf0a7672bb1208e534112f00d7019998a8
1 parent
783a20dc
Nop some SPRs on 970fx
Linux tries to access some SPRs on PPC64 boot. Let's just ignore those for the 970fx for now to make it happy. Signed-off-by: Alexander Graf <alex@csgraf.de> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6751 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
12 additions
and
0 deletions
target-ppc/translate_init.c
... | ... | @@ -6043,6 +6043,18 @@ static void init_proc_970FX (CPUPPCState *env) |
6043 | 6043 | SPR_NOACCESS, SPR_NOACCESS, |
6044 | 6044 | &spr_read_hior, &spr_write_hior, |
6045 | 6045 | 0x00000000); |
6046 | + spr_register(env, SPR_CTRL, "SPR_CTRL", | |
6047 | + SPR_NOACCESS, SPR_NOACCESS, | |
6048 | + &spr_read_generic, &spr_write_generic, | |
6049 | + 0x00000000); | |
6050 | + spr_register(env, SPR_UCTRL, "SPR_UCTRL", | |
6051 | + SPR_NOACCESS, SPR_NOACCESS, | |
6052 | + &spr_read_generic, &spr_write_generic, | |
6053 | + 0x00000000); | |
6054 | + spr_register(env, SPR_VRSAVE, "SPR_VRSAVE", | |
6055 | + &spr_read_generic, &spr_write_generic, | |
6056 | + &spr_read_generic, &spr_write_generic, | |
6057 | + 0x00000000); | |
6046 | 6058 | #if !defined(CONFIG_USER_ONLY) |
6047 | 6059 | env->slb_nr = 32; |
6048 | 6060 | #endif | ... | ... |