[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 03/14] hw/display/cirrus_vga: Convert debug printf() to trace
From: |
Alistair Francis |
Subject: |
Re: [PATCH 03/14] hw/display/cirrus_vga: Convert debug printf() to trace event |
Date: |
Tue, 26 May 2020 09:47:15 -0700 |
On Mon, May 25, 2020 at 11:25 PM Philippe Mathieu-Daudé <address@hidden> wrote:
>
> Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
Reviewed-by: Alistair Francis <address@hidden>
Alistair
> ---
> hw/display/cirrus_vga.c | 4 +---
> hw/display/trace-events | 1 +
> 2 files changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/hw/display/cirrus_vga.c b/hw/display/cirrus_vga.c
> index 1f29731ffe..33ccdde000 100644
> --- a/hw/display/cirrus_vga.c
> +++ b/hw/display/cirrus_vga.c
> @@ -1512,9 +1512,7 @@ static int cirrus_vga_read_gr(CirrusVGAState * s,
> unsigned reg_index)
> static void
> cirrus_vga_write_gr(CirrusVGAState * s, unsigned reg_index, int reg_value)
> {
> -#if defined(DEBUG_BITBLT) && 0
> - printf("gr%02x: %02x\n", reg_index, reg_value);
> -#endif
> + trace_vga_cirrus_write_gr(reg_index, reg_value);
> switch (reg_index) {
> case 0x00: // Standard VGA, BGCOLOR 0x000000ff
> s->vga.gr[reg_index] = reg_value & gr_mask[reg_index];
> diff --git a/hw/display/trace-events b/hw/display/trace-events
> index 47b2b168ae..c3043e4ced 100644
> --- a/hw/display/trace-events
> +++ b/hw/display/trace-events
> @@ -133,6 +133,7 @@ vga_vbe_write(uint32_t index, uint32_t val) "index 0x%x,
> val 0x%x"
> 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_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"
>
> # sii9022.c
> sii9022_read_reg(uint8_t addr, uint8_t val) "addr 0x%02x, val 0x%02x"
> --
> 2.21.3
>
>
- [PATCH 00/14] hw/display: Omnibus cleanups, Philippe Mathieu-Daudé, 2020/05/26
- [PATCH 01/14] hw/display/edid: Add missing 'qdev-properties.h' header, Philippe Mathieu-Daudé, 2020/05/26
- [PATCH 02/14] hw/display/cg3: Convert debug printf()s to trace events, Philippe Mathieu-Daudé, 2020/05/26
- [PATCH 03/14] hw/display/cirrus_vga: Convert debug printf() to trace event, Philippe Mathieu-Daudé, 2020/05/26
- Re: [PATCH 03/14] hw/display/cirrus_vga: Convert debug printf() to trace event,
Alistair Francis <=
- [PATCH 04/14] hw/display/cirrus_vga: Use qemu_log_mask(UNIMP) instead of debug printf, Philippe Mathieu-Daudé, 2020/05/26
- [PATCH 06/14] hw/display/cirrus_vga: Convert debug printf() to trace event, Philippe Mathieu-Daudé, 2020/05/26
- [PATCH 07/14] hw/display/dpcd: Fix memory region size, Philippe Mathieu-Daudé, 2020/05/26
- [PATCH 05/14] hw/display/cirrus_vga: Use qemu_log_mask(ERROR) instead of debug printf, Philippe Mathieu-Daudé, 2020/05/26
- [PATCH 08/14] hw/display/dpcd: Convert debug printf()s to trace events, Philippe Mathieu-Daudé, 2020/05/26