diff options
author | Cédric Le Goater <clg@kaod.org> | 2021-12-17 17:57:17 +0100 |
---|---|---|
committer | Cédric Le Goater <clg@kaod.org> | 2021-12-17 17:57:17 +0100 |
commit | de82dabeadd0511a3b18c76dc3c666a63798f8ae (patch) | |
tree | 69f54918b2e0a097c5a12710c6ceb3be2107d624 /hw/ppc/ppc.c | |
parent | 26e8bed611222c4e2b9408a8d5a405158e491a98 (diff) | |
download | qemu-de82dabeadd0511a3b18c76dc3c666a63798f8ae.zip qemu-de82dabeadd0511a3b18c76dc3c666a63798f8ae.tar.gz qemu-de82dabeadd0511a3b18c76dc3c666a63798f8ae.tar.bz2 |
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>
Diffstat (limited to 'hw/ppc/ppc.c')
-rw-r--r-- | hw/ppc/ppc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/ppc/ppc.c b/hw/ppc/ppc.c index e812759..818d757 100644 --- a/hw/ppc/ppc.c +++ b/hw/ppc/ppc.c @@ -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; |