target/ppc: add user read/write functions for MMCR2
commit7b3ecf16c81c16eb3cf171b0bd63c08f1a5dd942
authorDaniel Henrique Barboza <danielhb413@gmail.com>
Mon, 18 Oct 2021 01:01:21 +0000 (17 22:01 -0300)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 21 Oct 2021 00:42:47 +0000 (21 11:42 +1100)
tree889a42b61387639eb2029bdc0c42c7836fd90a46
parent565cb1096733dae6d388244e03d60d680f6eca84
target/ppc: add user read/write functions for MMCR2

Similar to the previous patch, let's add problem state read/write access to
the MMCR2 SPR, which is also a group A PMU SPR that needs to be filtered
to be read/written by userspace.

Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Message-Id: <20211018010133.315842-4-danielhb413@gmail.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target/ppc/cpu.h
target/ppc/cpu_init.c
target/ppc/power8-pmu-regs.c.inc
target/ppc/spr_tcg.h