|
@@ -28,6 +28,7 @@
|
|
|
*/
|
|
|
#include "qemu/osdep.h"
|
|
|
#include "qapi/error.h"
|
|
|
+#include "trace.h"
|
|
|
#include "hw/hw.h"
|
|
|
#include "hw/pci/pci.h"
|
|
|
#include "ui/console.h"
|
|
@@ -1852,12 +1853,14 @@ static uint8_t cirrus_mmio_blt_read(CirrusVGAState * s, unsigned address)
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
+ trace_vga_cirrus_write_blt(address, value);
|
|
|
return (uint8_t) value;
|
|
|
}
|
|
|
|
|
|
static void cirrus_mmio_blt_write(CirrusVGAState * s, unsigned address,
|
|
|
uint8_t value)
|
|
|
{
|
|
|
+ trace_vga_cirrus_write_blt(address, value);
|
|
|
switch (address) {
|
|
|
case (CIRRUS_MMIO_BLTBGCOLOR + 0):
|
|
|
cirrus_vga_write_gr(s, 0x00, value);
|
|
@@ -2607,9 +2610,7 @@ static uint64_t cirrus_vga_ioport_read(void *opaque, hwaddr addr,
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
-#if defined(DEBUG_VGA)
|
|
|
- printf("VGA: read addr=0x%04x data=0x%02x\n", addr, val);
|
|
|
-#endif
|
|
|
+ trace_vga_cirrus_read_io(addr, val);
|
|
|
return val;
|
|
|
}
|
|
|
|
|
@@ -2626,9 +2627,7 @@ static void cirrus_vga_ioport_write(void *opaque, hwaddr addr, uint64_t val,
|
|
|
if (vga_ioport_invalid(s, addr)) {
|
|
|
return;
|
|
|
}
|
|
|
-#ifdef DEBUG_VGA
|
|
|
- printf("VGA: write addr=0x%04x data=0x%02x\n", addr, val);
|
|
|
-#endif
|
|
|
+ trace_vga_cirrus_write_io(addr, val);
|
|
|
|
|
|
switch (addr) {
|
|
|
case 0x3c0:
|