diff options
author | Frederic Barrat <fbarrat@linux.ibm.com> | 2024-09-13 11:16:50 -0500 |
---|---|---|
committer | Nicholas Piggin <npiggin@gmail.com> | 2024-11-04 09:14:29 +1000 |
commit | cfeafb0d8cdba8aa7fa3f04e28430253faf051e3 (patch) | |
tree | 1faee8304243c5281e32760c0aca82b1b5fb1faa /hw | |
parent | aa90c209bf672047947c1724b50a636a292b24b9 (diff) | |
download | qemu-cfeafb0d8cdba8aa7fa3f04e28430253faf051e3.zip qemu-cfeafb0d8cdba8aa7fa3f04e28430253faf051e3.tar.gz qemu-cfeafb0d8cdba8aa7fa3f04e28430253faf051e3.tar.bz2 |
ppc/xive2: Dump more NVP state with 'info pic'
The 'PGoFirst' field of a Notify Virtual Processor tells if the NVP
belongs to a VP group.
Also, print the Reporting Cache Line address, if defined.
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 'hw')
-rw-r--r-- | hw/intc/xive2.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/hw/intc/xive2.c b/hw/intc/xive2.c index fbd05aa..ac581fa 100644 --- a/hw/intc/xive2.c +++ b/hw/intc/xive2.c @@ -161,14 +161,20 @@ void xive2_nvp_pic_print_info(Xive2Nvp *nvp, uint32_t nvp_idx, GString *buf) { uint8_t eq_blk = xive_get_field32(NVP2_W5_VP_END_BLOCK, nvp->w5); uint32_t eq_idx = xive_get_field32(NVP2_W5_VP_END_INDEX, nvp->w5); + uint64_t cache_line = xive2_nvp_reporting_addr(nvp); if (!xive2_nvp_is_valid(nvp)) { return; } - g_string_append_printf(buf, " %08x end:%02x/%04x IPB:%02x", + g_string_append_printf(buf, " %08x end:%02x/%04x IPB:%02x PGoFirst:%02x", nvp_idx, eq_blk, eq_idx, - xive_get_field32(NVP2_W2_IPB, nvp->w2)); + xive_get_field32(NVP2_W2_IPB, nvp->w2), + xive_get_field32(NVP2_W0_PGOFIRST, nvp->w0)); + if (cache_line) { + g_string_append_printf(buf, " reporting CL:%016"PRIx64, cache_line); + } + /* * When the NVP is HW controlled, more fields are updated */ |