diff options
author | Alexander Graf <agraf@suse.de> | 2014-01-23 11:43:49 +0100 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2014-06-16 13:24:34 +0200 |
commit | deb05c4c4c2b7bfeccddb8494164cc858a8652ec (patch) | |
tree | 34eb01a9103b50d196d64b85b7cc5eea90a3d3a3 /target-ppc | |
parent | 45eb56110bcefef473f866772a7b537be1b3fe35 (diff) | |
download | qemu-deb05c4c4c2b7bfeccddb8494164cc858a8652ec.tar.gz qemu-deb05c4c4c2b7bfeccddb8494164cc858a8652ec.tar.bz2 qemu-deb05c4c4c2b7bfeccddb8494164cc858a8652ec.zip |
PPC: Fix SPR access control of L1CFG0
The L1CFG0 register on e200 and e500 is "User RO" according to the
specifications. So let's make it user readable and world unwritable.
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'target-ppc')
-rw-r--r-- | target-ppc/translate_init.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index 1d64ec9695..07f723da06 100644 --- a/target-ppc/translate_init.c +++ b/target-ppc/translate_init.c @@ -4433,8 +4433,8 @@ static void init_proc_e200 (CPUPPCState *env) 0x00000000); /* XXX : not implemented */ spr_register(env, SPR_Exxx_L1CFG0, "L1CFG0", - SPR_NOACCESS, SPR_NOACCESS, - &spr_read_generic, &spr_write_generic, + &spr_read_generic, SPR_NOACCESS, + &spr_read_generic, SPR_NOACCESS, 0x00000000); /* XXX : not implemented */ spr_register(env, SPR_Exxx_L1CSR0, "L1CSR0", @@ -4766,8 +4766,8 @@ static void init_proc_e500 (CPUPPCState *env, int version) 0x00000000); /* XXX : not implemented */ spr_register(env, SPR_Exxx_L1CFG0, "L1CFG0", - SPR_NOACCESS, SPR_NOACCESS, - &spr_read_generic, &spr_write_generic, + &spr_read_generic, SPR_NOACCESS, + &spr_read_generic, SPR_NOACCESS, l1cfg0); /* XXX : not implemented */ spr_register(env, SPR_Exxx_L1CSR0, "L1CSR0", |