hw/display/cirrus_vga: Convert debug printf() to trace event
Convert the final bit of DEBUG_BITBLT to a tracepoint. Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-id: 20200526062252.19852-7-f4bug@amsat.org Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
2b55f4d350
commit
6152772174
@ -53,7 +53,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
//#define DEBUG_CIRRUS
|
//#define DEBUG_CIRRUS
|
||||||
//#define DEBUG_BITBLT
|
|
||||||
|
|
||||||
/***************************************
|
/***************************************
|
||||||
*
|
*
|
||||||
@ -950,9 +949,7 @@ static void cirrus_bitblt_start(CirrusVGAState * s)
|
|||||||
s->cirrus_blt_dstaddr &= s->cirrus_addr_mask;
|
s->cirrus_blt_dstaddr &= s->cirrus_addr_mask;
|
||||||
s->cirrus_blt_srcaddr &= s->cirrus_addr_mask;
|
s->cirrus_blt_srcaddr &= s->cirrus_addr_mask;
|
||||||
|
|
||||||
#ifdef DEBUG_BITBLT
|
trace_vga_cirrus_bitblt_start(blt_rop,
|
||||||
printf("rop=0x%02x mode=0x%02x modeext=0x%02x w=%d h=%d dpitch=%d spitch=%d daddr=0x%08x saddr=0x%08x writemask=0x%02x\n",
|
|
||||||
blt_rop,
|
|
||||||
s->cirrus_blt_mode,
|
s->cirrus_blt_mode,
|
||||||
s->cirrus_blt_modeext,
|
s->cirrus_blt_modeext,
|
||||||
s->cirrus_blt_width,
|
s->cirrus_blt_width,
|
||||||
@ -962,7 +959,6 @@ static void cirrus_bitblt_start(CirrusVGAState * s)
|
|||||||
s->cirrus_blt_dstaddr,
|
s->cirrus_blt_dstaddr,
|
||||||
s->cirrus_blt_srcaddr,
|
s->cirrus_blt_srcaddr,
|
||||||
s->vga.gr[0x2f]);
|
s->vga.gr[0x2f]);
|
||||||
#endif
|
|
||||||
|
|
||||||
switch (s->cirrus_blt_mode & CIRRUS_BLTMODE_PIXELWIDTHMASK) {
|
switch (s->cirrus_blt_mode & CIRRUS_BLTMODE_PIXELWIDTHMASK) {
|
||||||
case CIRRUS_BLTMODE_PIXELWIDTH8:
|
case CIRRUS_BLTMODE_PIXELWIDTH8:
|
||||||
|
@ -134,6 +134,7 @@ vga_cirrus_read_io(uint32_t addr, uint32_t val) "addr 0x%x, val 0x%x"
|
|||||||
vga_cirrus_write_io(uint32_t addr, uint32_t val) "addr 0x%x, val 0x%x"
|
vga_cirrus_write_io(uint32_t addr, uint32_t val) "addr 0x%x, val 0x%x"
|
||||||
vga_cirrus_write_blt(uint32_t offset, uint32_t val) "offset 0x%x, val 0x%x"
|
vga_cirrus_write_blt(uint32_t offset, uint32_t val) "offset 0x%x, val 0x%x"
|
||||||
vga_cirrus_write_gr(uint8_t index, uint8_t val) "GR addr 0x%02x, val 0x%02x"
|
vga_cirrus_write_gr(uint8_t index, uint8_t val) "GR addr 0x%02x, val 0x%02x"
|
||||||
|
vga_cirrus_bitblt_start(uint8_t blt_rop, uint8_t blt_mode, uint8_t blt_modeext, int blt_width, int blt_height, int blt_dstpitch, int blt_srcpitch, uint32_t blt_dstaddr, uint32_t blt_srcaddr, uint8_t gr_val) "rop=0x%02x mode=0x%02x modeext=0x%02x w=%d h=%d dpitch=%d spitch=%d daddr=0x%08"PRIx32" saddr=0x%08"PRIx32" writemask=0x%02x"
|
||||||
|
|
||||||
# sii9022.c
|
# sii9022.c
|
||||||
sii9022_read_reg(uint8_t addr, uint8_t val) "addr 0x%02x, val 0x%02x"
|
sii9022_read_reg(uint8_t addr, uint8_t val) "addr 0x%02x, val 0x%02x"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user