ppc: Add stub implementation of TRIG SPRs
commit99837aa88ce0494f8adb0ebf6bc7ce951f048a8d
authorJoel Stanley <joel@jms.id.au>
Wed, 19 Jul 2023 05:29:20 +0000 (19 14:59 +0930)
committerCédric Le Goater <clg@kaod.org>
Wed, 6 Sep 2023 09:19:32 +0000 (6 11:19 +0200)
treeaeefd2d0a32298f70e0cf57950831c3b1871ab04
parent0fdf05d774a5f6b701459d61e7875229667cacbd
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>
target/ppc/cpu.h
target/ppc/cpu_init.c