mirror of https://github.com/xqemu/xqemu.git
ioapic: some proper indents when dump info
So that now it looks better when with other irqchips. Signed-off-by: Peter Xu <peterx@redhat.com> Message-Id: <20171229073104.3810-4-peterx@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
4a499ad295
commit
6a218b032b
|
@ -59,7 +59,7 @@ void ioapic_print_redtbl(Monitor *mon, IOAPICCommonState *s)
|
||||||
uint32_t remote_irr = 0;
|
uint32_t remote_irr = 0;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
monitor_printf(mon, "ioapic ver=0x%x id=0x%02x sel=0x%02x",
|
monitor_printf(mon, "ioapic0: ver=0x%x id=0x%02x sel=0x%02x",
|
||||||
s->version, s->id, s->ioregsel);
|
s->version, s->id, s->ioregsel);
|
||||||
if (s->ioregsel) {
|
if (s->ioregsel) {
|
||||||
monitor_printf(mon, " (redir[%u])\n",
|
monitor_printf(mon, " (redir[%u])\n",
|
||||||
|
@ -71,7 +71,7 @@ void ioapic_print_redtbl(Monitor *mon, IOAPICCommonState *s)
|
||||||
uint64_t entry = s->ioredtbl[i];
|
uint64_t entry = s->ioredtbl[i];
|
||||||
uint32_t delm = (uint32_t)((entry & IOAPIC_LVT_DELIV_MODE) >>
|
uint32_t delm = (uint32_t)((entry & IOAPIC_LVT_DELIV_MODE) >>
|
||||||
IOAPIC_LVT_DELIV_MODE_SHIFT);
|
IOAPIC_LVT_DELIV_MODE_SHIFT);
|
||||||
monitor_printf(mon, "pin %-2u 0x%016"PRIx64" dest=%"PRIx64
|
monitor_printf(mon, " pin %-2u 0x%016"PRIx64" dest=%"PRIx64
|
||||||
" vec=%-3"PRIu64" %s %-5s %-6s %-6s %s\n",
|
" vec=%-3"PRIu64" %s %-5s %-6s %-6s %s\n",
|
||||||
i, entry,
|
i, entry,
|
||||||
(entry >> IOAPIC_LVT_DEST_SHIFT) &
|
(entry >> IOAPIC_LVT_DEST_SHIFT) &
|
||||||
|
@ -86,8 +86,8 @@ void ioapic_print_redtbl(Monitor *mon, IOAPICCommonState *s)
|
||||||
remote_irr |= entry & IOAPIC_LVT_TRIGGER_MODE ?
|
remote_irr |= entry & IOAPIC_LVT_TRIGGER_MODE ?
|
||||||
(entry & IOAPIC_LVT_REMOTE_IRR ? (1 << i) : 0) : 0;
|
(entry & IOAPIC_LVT_REMOTE_IRR ? (1 << i) : 0) : 0;
|
||||||
}
|
}
|
||||||
ioapic_irr_dump(mon, "IRR", s->irr);
|
ioapic_irr_dump(mon, " IRR", s->irr);
|
||||||
ioapic_irr_dump(mon, "Remote IRR", remote_irr);
|
ioapic_irr_dump(mon, " Remote IRR", remote_irr);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ioapic_reset_common(DeviceState *dev)
|
void ioapic_reset_common(DeviceState *dev)
|
||||||
|
|
Loading…
Reference in New Issue