aboutsummaryrefslogtreecommitdiff
path: root/include/hw/ppc/xive2_regs.h
diff options
context:
space:
mode:
authorFrederic Barrat <fbarrat@linux.ibm.com>2024-09-13 11:16:51 -0500
committerNicholas Piggin <npiggin@gmail.com>2024-11-04 09:14:35 +1000
commit76798e12dfa61ff7d7bc05a6cc831c023a8ba08c (patch)
treeeb4b0611b5fb59e3cc6e1d08a9c5526e152c9429 /include/hw/ppc/xive2_regs.h
parentcfeafb0d8cdba8aa7fa3f04e28430253faf051e3 (diff)
downloadqemu-76798e12dfa61ff7d7bc05a6cc831c023a8ba08c.zip
qemu-76798e12dfa61ff7d7bc05a6cc831c023a8ba08c.tar.gz
qemu-76798e12dfa61ff7d7bc05a6cc831c023a8ba08c.tar.bz2
ppc/xive2: Dump the VP-group and crowd tables with 'info pic'
The 'info pic' HMP command dumps the state of the interrupt controller. Add the dump of the NVG and NVC tables to its output to ease debug. Signed-off-by: Frederic Barrat <fbarrat@linux.ibm.com> Signed-off-by: Michael Kowal <kowal@linux.ibm.com> Reviewed-by: Cédric Le Goater <clg@redhat.com> Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Diffstat (limited to 'include/hw/ppc/xive2_regs.h')
-rw-r--r--include/hw/ppc/xive2_regs.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/hw/ppc/xive2_regs.h b/include/hw/ppc/xive2_regs.h
index d71a54f..99840e8 100644
--- a/include/hw/ppc/xive2_regs.h
+++ b/include/hw/ppc/xive2_regs.h
@@ -212,6 +212,7 @@ void xive2_nvp_pic_print_info(Xive2Nvp *nvp, uint32_t nvp_idx, GString *buf);
typedef struct Xive2Nvgc {
uint32_t w0;
#define NVGC2_W0_VALID PPC_BIT32(0)
+#define NVGC2_W0_PGONEXT PPC_BITMASK32(26, 31)
uint32_t w1;
uint32_t w2;
uint32_t w3;
@@ -221,4 +222,9 @@ typedef struct Xive2Nvgc {
uint32_t w7;
} Xive2Nvgc;
+#define xive2_nvgc_is_valid(nvgc) (be32_to_cpu((nvgc)->w0) & NVGC2_W0_VALID)
+
+void xive2_nvgc_pic_print_info(Xive2Nvgc *nvgc, uint32_t nvgc_idx,
+ GString *buf);
+
#endif /* PPC_XIVE2_REGS_H */