mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 10:34:58 -06:00
hw/misc/macio: Improve trace logs
Add macio_gpio_read trace event and use that in macio_gpio_read() instead of macio_gpio_write. Also change log message to match macio_timer_{read,write}. Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu> Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-ID: <20250222122850.9D8B84E603D@zero.eik.bme.hu> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
This commit is contained in:
parent
7fc96bc4fc
commit
70f98ae150
2 changed files with 3 additions and 2 deletions
|
@ -135,7 +135,7 @@ static uint64_t macio_gpio_read(void *opaque, hwaddr addr, unsigned size)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
trace_macio_gpio_write(addr, val);
|
trace_macio_gpio_read(addr, val);
|
||||||
return val;
|
return val;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,8 @@ macio_timer_read(uint64_t addr, unsigned len, uint32_t val) "read addr 0x%"PRIx6
|
||||||
macio_set_gpio(int gpio, bool state) "setting GPIO %d to %d"
|
macio_set_gpio(int gpio, bool state) "setting GPIO %d to %d"
|
||||||
macio_gpio_irq_assert(int gpio) "asserting GPIO %d"
|
macio_gpio_irq_assert(int gpio) "asserting GPIO %d"
|
||||||
macio_gpio_irq_deassert(int gpio) "deasserting GPIO %d"
|
macio_gpio_irq_deassert(int gpio) "deasserting GPIO %d"
|
||||||
macio_gpio_write(uint64_t addr, uint64_t val) "addr: 0x%"PRIx64" value: 0x%"PRIx64
|
macio_gpio_write(uint64_t addr, uint64_t val) "addr 0x%"PRIx64" val 0x%"PRIx64
|
||||||
|
macio_gpio_read(uint64_t addr, uint64_t val) "addr 0x%"PRIx64" val 0x%"PRIx64
|
||||||
|
|
||||||
# pmu.c
|
# pmu.c
|
||||||
pmu_adb_poll(int olen) "ADB autopoll, olen=%d"
|
pmu_adb_poll(int olen) "ADB autopoll, olen=%d"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue