mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-11 03:24:58 -06:00
hw/ppc: Avoid using Monitor in xive2_end_eas_pic_print_info()
Replace Monitor API by HumanReadableText one. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org> Reviewed-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com> Message-Id: <20240610062105.49848-19-philmd@linaro.org>
This commit is contained in:
parent
0018666462
commit
9d5c1da9c0
3 changed files with 16 additions and 16 deletions
|
@ -2135,14 +2135,14 @@ void pnv_xive2_pic_print_info(PnvXive2 *xive, Monitor *mon)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
info = human_readable_text_from_str(buf);
|
g_string_append_printf(buf, "XIVE[%x] #%d END Escalation EAT\n",
|
||||||
monitor_puts(mon, info->human_readable_text);
|
chip_id, blk);
|
||||||
|
|
||||||
monitor_printf(mon, "XIVE[%x] #%d END Escalation EAT\n", chip_id, blk);
|
|
||||||
i = 0;
|
i = 0;
|
||||||
while (!xive2_router_get_end(xrtr, blk, i, &end)) {
|
while (!xive2_router_get_end(xrtr, blk, i, &end)) {
|
||||||
xive2_end_eas_pic_print_info(&end, i++, mon);
|
xive2_end_eas_pic_print_info(&end, i++, buf);
|
||||||
}
|
}
|
||||||
|
info = human_readable_text_from_str(buf);
|
||||||
|
monitor_puts(mon, info->human_readable_text);
|
||||||
|
|
||||||
monitor_printf(mon, "XIVE[%x] #%d ENDT\n", chip_id, blk);
|
monitor_printf(mon, "XIVE[%x] #%d ENDT\n", chip_id, blk);
|
||||||
i = 0;
|
i = 0;
|
||||||
|
|
|
@ -116,7 +116,7 @@ void xive2_end_pic_print_info(Xive2End *end, uint32_t end_idx, Monitor *mon)
|
||||||
}
|
}
|
||||||
|
|
||||||
void xive2_end_eas_pic_print_info(Xive2End *end, uint32_t end_idx,
|
void xive2_end_eas_pic_print_info(Xive2End *end, uint32_t end_idx,
|
||||||
Monitor *mon)
|
GString *buf)
|
||||||
{
|
{
|
||||||
Xive2Eas *eas = (Xive2Eas *) &end->w4;
|
Xive2Eas *eas = (Xive2Eas *) &end->w4;
|
||||||
uint8_t pq;
|
uint8_t pq;
|
||||||
|
@ -127,7 +127,7 @@ void xive2_end_eas_pic_print_info(Xive2End *end, uint32_t end_idx,
|
||||||
|
|
||||||
pq = xive_get_field32(END2_W1_ESe, end->w1);
|
pq = xive_get_field32(END2_W1_ESe, end->w1);
|
||||||
|
|
||||||
monitor_printf(mon, " %08x %c%c %c%c end:%02x/%04x data:%08x\n",
|
g_string_append_printf(buf, " %08x %c%c %c%c end:%02x/%04x data:%08x\n",
|
||||||
end_idx,
|
end_idx,
|
||||||
pq & XIVE_ESB_VAL_P ? 'P' : '-',
|
pq & XIVE_ESB_VAL_P ? 'P' : '-',
|
||||||
pq & XIVE_ESB_VAL_Q ? 'Q' : '-',
|
pq & XIVE_ESB_VAL_Q ? 'Q' : '-',
|
||||||
|
|
|
@ -134,7 +134,7 @@ void xive2_end_pic_print_info(Xive2End *end, uint32_t end_idx, Monitor *mon);
|
||||||
void xive2_end_queue_pic_print_info(Xive2End *end, uint32_t width,
|
void xive2_end_queue_pic_print_info(Xive2End *end, uint32_t width,
|
||||||
Monitor *mon);
|
Monitor *mon);
|
||||||
void xive2_end_eas_pic_print_info(Xive2End *end, uint32_t end_idx,
|
void xive2_end_eas_pic_print_info(Xive2End *end, uint32_t end_idx,
|
||||||
Monitor *mon);
|
GString *buf);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Notification Virtual Processor (NVP)
|
* Notification Virtual Processor (NVP)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue