target/ppc: Add power10 pmu SPRs
commit0b8893236ef11dd26be9290156ea34cb122e4dbe
authorMadhavan Srinivasan <maddy@linux.ibm.com>
Mon, 19 Feb 2024 10:39:24 +0000 (19 16:09 +0530)
committerNicholas Piggin <npiggin@gmail.com>
Tue, 12 Mar 2024 16:47:04 +0000 (13 02:47 +1000)
tree163a7c3bdef2f8ca288d776b5f8e7935c5a93565
parenta9bd40d9375451c0990d5ae0154b166f745bc458
target/ppc: Add power10 pmu SPRs

Currently in tcg mode, when reading from power10 pmu spr like MMCR3,
qemu logs this message (when starting qemu with -d guest_errors)

Trying to read invalid spr 754 (0x2f2) at 0000000030056bb0

This is becuase, no read/write call-backs are registered for
these SPRs. Add support to register generic read/write
functions to these power10 pmu sprs to fix it.

Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
target/ppc/cpu.h
target/ppc/cpu_init.c