target-ppc: Make UCTRL a mirror of CTRL
This changes UCTRL SPR to read from its supermode copy. This enables reading from UCTRL in user mode. Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Reviewed-by: Tom Musta <tommusta@gmail.com> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
42382f6244
commit
eb16dd9cc9
@ -7308,8 +7308,8 @@ static void gen_spr_book3s_common(CPUPPCState *env)
|
||||
SPR_NOACCESS, &spr_write_generic,
|
||||
0x00000000);
|
||||
spr_register(env, SPR_UCTRL, "SPR_UCTRL",
|
||||
SPR_NOACCESS, SPR_NOACCESS,
|
||||
&spr_read_generic, SPR_NOACCESS,
|
||||
&spr_read_ureg, SPR_NOACCESS,
|
||||
&spr_read_ureg, SPR_NOACCESS,
|
||||
0x00000000);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user