|
@@ -11,12 +11,10 @@
|
|
#include "qemu/log.h"
|
|
#include "qemu/log.h"
|
|
#include "qemu/module.h"
|
|
#include "qemu/module.h"
|
|
#include "qapi/error.h"
|
|
#include "qapi/error.h"
|
|
-#include "qapi/type-helpers.h"
|
|
|
|
#include "target/ppc/cpu.h"
|
|
#include "target/ppc/cpu.h"
|
|
#include "sysemu/cpus.h"
|
|
#include "sysemu/cpus.h"
|
|
#include "sysemu/dma.h"
|
|
#include "sysemu/dma.h"
|
|
#include "sysemu/reset.h"
|
|
#include "sysemu/reset.h"
|
|
-#include "monitor/monitor.h"
|
|
|
|
#include "hw/ppc/fdt.h"
|
|
#include "hw/ppc/fdt.h"
|
|
#include "hw/ppc/pnv.h"
|
|
#include "hw/ppc/pnv.h"
|
|
#include "hw/ppc/pnv_chip.h"
|
|
#include "hw/ppc/pnv_chip.h"
|
|
@@ -1846,7 +1844,7 @@ static void xive_nvt_pic_print_info(XiveNVT *nvt, uint32_t nvt_idx,
|
|
xive_get_field32(NVT_W4_IPB, nvt->w4));
|
|
xive_get_field32(NVT_W4_IPB, nvt->w4));
|
|
}
|
|
}
|
|
|
|
|
|
-void pnv_xive_pic_print_info(PnvXive *xive, Monitor *mon)
|
|
|
|
|
|
+void pnv_xive_pic_print_info(PnvXive *xive, GString *buf)
|
|
{
|
|
{
|
|
XiveRouter *xrtr = XIVE_ROUTER(xive);
|
|
XiveRouter *xrtr = XIVE_ROUTER(xive);
|
|
uint8_t blk = pnv_xive_block_id(xive);
|
|
uint8_t blk = pnv_xive_block_id(xive);
|
|
@@ -1858,8 +1856,6 @@ void pnv_xive_pic_print_info(PnvXive *xive, Monitor *mon)
|
|
XiveNVT nvt;
|
|
XiveNVT nvt;
|
|
int i;
|
|
int i;
|
|
uint64_t xive_nvt_per_subpage;
|
|
uint64_t xive_nvt_per_subpage;
|
|
- g_autoptr(GString) buf = g_string_new("");
|
|
|
|
- g_autoptr(HumanReadableText) info = NULL;
|
|
|
|
|
|
|
|
g_string_append_printf(buf, "XIVE[%x] #%d Source %08x .. %08x\n",
|
|
g_string_append_printf(buf, "XIVE[%x] #%d Source %08x .. %08x\n",
|
|
chip_id, blk, srcno0, srcno0 + nr_ipis - 1);
|
|
chip_id, blk, srcno0, srcno0 + nr_ipis - 1);
|
|
@@ -1897,9 +1893,6 @@ void pnv_xive_pic_print_info(PnvXive *xive, Monitor *mon)
|
|
xive_nvt_pic_print_info(&nvt, i++, buf);
|
|
xive_nvt_pic_print_info(&nvt, i++, buf);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
- info = human_readable_text_from_str(buf);
|
|
|
|
- monitor_puts(mon, info->human_readable_text);
|
|
|
|
}
|
|
}
|
|
|
|
|
|
static void pnv_xive_reset(void *dev)
|
|
static void pnv_xive_reset(void *dev)
|