summary refs log tree commit diff stats
path: root/hw/mips/trace-events
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2022-12-30 15:35:24 +0100
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2023-01-13 09:31:19 +0100
commit9f81e43f10496bc225a9bbed3d56a26b9f759fd6 (patch)
tree7cbcec6b20cb6440e9093ceac9b2b1ea5ec776ef /hw/mips/trace-events
parente7a65ba694d84592d190644d8d0ae4ea9137c35d (diff)
downloadfocaccia-qemu-9f81e43f10496bc225a9bbed3d56a26b9f759fd6.tar.gz
focaccia-qemu-9f81e43f10496bc225a9bbed3d56a26b9f759fd6.zip
hw/mips/malta: Trace FPGA LEDs/ASCII display updates
The FPGA LEDs/ASCII display is mostly used by the bootloader
to show very low-level debug info. QEMU connects its output
to a character device backend, which is not very practical
to correlate with ASM instruction executed, interrupts or
MMIO accesses. Also, the display discard the previous states.

To ease bootloader debugging experience, add a pair of trace
events. Such events can be analyzed over time or diff-ed
between different runs.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230104133935.4639-4-philmd@linaro.org>
Diffstat (limited to 'hw/mips/trace-events')
-rw-r--r--hw/mips/trace-events4
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/mips/trace-events b/hw/mips/trace-events
index 13ee731a48..b5b882c6c2 100644
--- a/hw/mips/trace-events
+++ b/hw/mips/trace-events
@@ -4,3 +4,7 @@ gt64120_write(uint64_t addr, uint64_t value) "gt64120 write 0x%03"PRIx64" value:
 gt64120_read_intreg(const char *regname, unsigned size, uint64_t value) "gt64120 read %s size:%u value:0x%08" PRIx64
 gt64120_write_intreg(const char *regname, unsigned size, uint64_t value) "gt64120 write %s size:%u value:0x%08" PRIx64
 gt64120_isd_remap(uint64_t from_length, uint64_t from_addr, uint64_t to_length, uint64_t to_addr) "ISD: 0x%08" PRIx64 "@0x%08" PRIx64 " -> 0x%08" PRIx64 "@0x%08" PRIx64
+
+# malta.c
+malta_fpga_leds(const char *text) "LEDs %s"
+malta_fpga_display(const char *text) "ASCII '%s'"