mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
ppc: Add stub implementation of TRIG SPRs
Linux sets these to control cache flush behaviour on Power9. Supervisor and hypervisor are allowed to write, and reads are noops. Add implementations to avoid noisy messages when booting Linux under the pseries machine with guest_errors enabled. Reviewed-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Cédric Le Goater <clg@kaod.org>
This commit is contained in:
parent
0fdf05d774
commit
99837aa88c
2 changed files with 12 additions and 0 deletions
|
@ -5660,6 +5660,16 @@ static void register_power_common_book4_sprs(CPUPPCState *env)
|
|||
SPR_NOACCESS, SPR_NOACCESS,
|
||||
&spr_read_tfmr, &spr_write_tfmr,
|
||||
0x00000000);
|
||||
spr_register_hv(env, SPR_TRIG1, "TRIG1",
|
||||
SPR_NOACCESS, SPR_NOACCESS,
|
||||
&spr_access_nop, &spr_write_generic,
|
||||
&spr_access_nop, &spr_write_generic,
|
||||
0x00000000);
|
||||
spr_register_hv(env, SPR_TRIG2, "TRIG2",
|
||||
SPR_NOACCESS, SPR_NOACCESS,
|
||||
&spr_access_nop, &spr_write_generic,
|
||||
&spr_access_nop, &spr_write_generic,
|
||||
0x00000000);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue