Revision 376253ec hw/sun4c_intctl.c

b/hw/sun4c_intctl.c
23 23
 */
24 24
#include "hw.h"
25 25
#include "sun4m.h"
26
#include "console.h"
26
#include "monitor.h"
27 27
//#define DEBUG_IRQ_COUNT
28 28
//#define DEBUG_IRQ
29 29

  
......
90 90
    NULL,
91 91
};
92 92

  
93
void sun4c_pic_info(void *opaque)
93
void sun4c_pic_info(Monitor *mon, void *opaque)
94 94
{
95 95
    Sun4c_INTCTLState *s = opaque;
96 96

  
97
    term_printf("master: pending 0x%2.2x, enabled 0x%2.2x\n", s->pending,
98
                s->reg);
97
    monitor_printf(mon, "master: pending 0x%2.2x, enabled 0x%2.2x\n",
98
                   s->pending, s->reg);
99 99
}
100 100

  
101
void sun4c_irq_info(void *opaque)
101
void sun4c_irq_info(Monitor *mon, void *opaque)
102 102
{
103 103
#ifndef DEBUG_IRQ_COUNT
104
    term_printf("irq statistic code not compiled.\n");
104
    monitor_printf(mon, "irq statistic code not compiled.\n");
105 105
#else
106 106
    Sun4c_INTCTLState *s = opaque;
107 107
    int64_t count;
108 108

  
109
    term_printf("IRQ statistics:\n");
109
    monitor_printf(mon, "IRQ statistics:\n");
110 110
    count = s->irq_count[i];
111 111
    if (count > 0)
112
        term_printf("%2d: %" PRId64 "\n", i, count);
112
        monitor_printf(mon, "%2d: %" PRId64 "\n", i, count);
113 113
#endif
114 114
}
115 115

  

Also available in: Unified diff