diff options
| author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-06-19 20:26:47 +0200 |
|---|---|---|
| committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-07-02 09:19:20 +0200 |
| commit | c159de66f29f7f0e6f7739d8722b54e0cb3cb971 (patch) | |
| tree | fea671bf4ae8c2292ec65b363b975bcb94b4fd00 /hw/sd/trace-events | |
| parent | 702ff29c8ff397e6f3aa7e46f30f9ccdd74fb492 (diff) | |
| download | focaccia-qemu-c159de66f29f7f0e6f7739d8722b54e0cb3cb971.tar.gz focaccia-qemu-c159de66f29f7f0e6f7739d8722b54e0cb3cb971.zip | |
hw/sd/sdcard: Trace block offset in READ/WRITE data accesses
Useful to detect out of bound accesses. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Cédric Le Goater <clg@redhat.com> Tested-by: Cédric Le Goater <clg@redhat.com> Message-Id: <20240628070216.92609-5-philmd@linaro.org>
Diffstat (limited to 'hw/sd/trace-events')
| -rw-r--r-- | hw/sd/trace-events | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/sd/trace-events b/hw/sd/trace-events index 724365efc3..0eee98a646 100644 --- a/hw/sd/trace-events +++ b/hw/sd/trace-events @@ -52,8 +52,8 @@ sdcard_lock(void) "" sdcard_unlock(void) "" sdcard_read_block(uint64_t addr, uint32_t len) "addr 0x%" PRIx64 " size 0x%x" sdcard_write_block(uint64_t addr, uint32_t len) "addr 0x%" PRIx64 " size 0x%x" -sdcard_write_data(const char *proto, const char *cmd_desc, uint8_t cmd, uint8_t value) "%s %20s/ CMD%02d value 0x%02x" -sdcard_read_data(const char *proto, const char *cmd_desc, uint8_t cmd, uint32_t length) "%s %20s/ CMD%02d len %" PRIu32 +sdcard_write_data(const char *proto, const char *cmd_desc, uint8_t cmd, uint32_t offset, uint8_t value) "%s %20s/ CMD%02d ofs %"PRIu32" value 0x%02x" +sdcard_read_data(const char *proto, const char *cmd_desc, uint8_t cmd, uint32_t offset, uint32_t length) "%s %20s/ CMD%02d ofs %"PRIu32" len %" PRIu32 sdcard_set_voltage(uint16_t millivolts) "%u mV" # pxa2xx_mmci.c |