mirror of https://github.com/xemu-project/xemu.git
speed/sdhci: Add trace events
Signed-off-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Francisco Iglesias <frasse.iglesias@gmail.com> Message-Id: <20211018132609.160008-6-clg@kaod.org> Signed-off-by: Cédric Le Goater <clg@kaod.org>
This commit is contained in:
parent
fc6642544e
commit
b12fa6118f
|
@ -14,6 +14,7 @@
|
||||||
#include "hw/irq.h"
|
#include "hw/irq.h"
|
||||||
#include "migration/vmstate.h"
|
#include "migration/vmstate.h"
|
||||||
#include "hw/qdev-properties.h"
|
#include "hw/qdev-properties.h"
|
||||||
|
#include "trace.h"
|
||||||
|
|
||||||
#define ASPEED_SDHCI_INFO 0x00
|
#define ASPEED_SDHCI_INFO 0x00
|
||||||
#define ASPEED_SDHCI_INFO_SLOT1 (1 << 17)
|
#define ASPEED_SDHCI_INFO_SLOT1 (1 << 17)
|
||||||
|
@ -60,6 +61,8 @@ static uint64_t aspeed_sdhci_read(void *opaque, hwaddr addr, unsigned int size)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
trace_aspeed_sdhci_read(addr, size, (uint64_t) val);
|
||||||
|
|
||||||
return (uint64_t)val;
|
return (uint64_t)val;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -68,6 +71,8 @@ static void aspeed_sdhci_write(void *opaque, hwaddr addr, uint64_t val,
|
||||||
{
|
{
|
||||||
AspeedSDHCIState *sdhci = opaque;
|
AspeedSDHCIState *sdhci = opaque;
|
||||||
|
|
||||||
|
trace_aspeed_sdhci_write(addr, size, val);
|
||||||
|
|
||||||
switch (addr) {
|
switch (addr) {
|
||||||
case ASPEED_SDHCI_INFO:
|
case ASPEED_SDHCI_INFO:
|
||||||
/* The RESET bit automatically clears. */
|
/* The RESET bit automatically clears. */
|
||||||
|
|
|
@ -68,3 +68,7 @@ pl181_fifo_push(uint32_t data) "FIFO push 0x%08" PRIx32
|
||||||
pl181_fifo_pop(uint32_t data) "FIFO pop 0x%08" PRIx32
|
pl181_fifo_pop(uint32_t data) "FIFO pop 0x%08" PRIx32
|
||||||
pl181_fifo_transfer_complete(void) "FIFO transfer complete"
|
pl181_fifo_transfer_complete(void) "FIFO transfer complete"
|
||||||
pl181_data_engine_idle(void) "data engine idle"
|
pl181_data_engine_idle(void) "data engine idle"
|
||||||
|
|
||||||
|
# aspeed_sdhci.c
|
||||||
|
aspeed_sdhci_read(uint64_t addr, uint32_t size, uint64_t data) "@0x%" PRIx64 " size %u: 0x%" PRIx64
|
||||||
|
aspeed_sdhci_write(uint64_t addr, uint32_t size, uint64_t data) "@0x%" PRIx64 " size %u: 0x%" PRIx64
|
||||||
|
|
Loading…
Reference in New Issue