ppc: Add trace-events for DCR accesses
Signed-off-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20211206103712.1866296-4-clg@kaod.org> Signed-off-by: Cédric Le Goater <clg@kaod.org>
This commit is contained in:
parent
26e8bed611
commit
de82dabead
@ -1367,6 +1367,7 @@ int ppc_dcr_read (ppc_dcr_t *dcr_env, int dcrn, uint32_t *valp)
|
||||
if (dcr->dcr_read == NULL)
|
||||
goto error;
|
||||
*valp = (*dcr->dcr_read)(dcr->opaque, dcrn);
|
||||
trace_ppc_dcr_read(dcrn, *valp);
|
||||
|
||||
return 0;
|
||||
|
||||
@ -1386,6 +1387,7 @@ int ppc_dcr_write (ppc_dcr_t *dcr_env, int dcrn, uint32_t val)
|
||||
dcr = &dcr_env->dcrn[dcrn];
|
||||
if (dcr->dcr_write == NULL)
|
||||
goto error;
|
||||
trace_ppc_dcr_write(dcrn, val);
|
||||
(*dcr->dcr_write)(dcr->opaque, dcrn, val);
|
||||
|
||||
return 0;
|
||||
|
@ -119,6 +119,9 @@ ppc_irq_set_state(const char *name, uint32_t level) "\"%s\" level %d"
|
||||
ppc_irq_reset(const char *name) "%s"
|
||||
ppc_irq_cpu(const char *action) "%s"
|
||||
|
||||
ppc_dcr_read(uint32_t addr, uint32_t val) "DRCN[0x%x] -> 0x%x"
|
||||
ppc_dcr_write(uint32_t addr, uint32_t val) "DRCN[0x%x] <- 0x%x"
|
||||
|
||||
# prep_systemio.c
|
||||
prep_systemio_read(uint32_t addr, uint32_t val) "read addr=0x%x val=0x%x"
|
||||
prep_systemio_write(uint32_t addr, uint32_t val) "write addr=0x%x val=0x%x"
|
||||
|
Loading…
x
Reference in New Issue
Block a user