Search
lxdream.org :: lxdream/src/sh4/sh4mem.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4mem.c
changeset 172:59cf18b4cfb2
prev165:126794f2ea6d
next217:d0b3da720456
author nkeynes
date Tue Jun 27 11:02:48 2006 +0000 (14 years ago)
permissions -rw-r--r--
last change Add register-by-register NOTRACE option (useful for tracing eg 0xA05F6000
without the ridiculous traffic certain status ports get...)
file annotate diff log raw
1.1 --- a/src/sh4/sh4mem.c Sun Jun 18 12:01:06 2006 +0000
1.2 +++ b/src/sh4/sh4mem.c Tue Jun 27 11:02:48 2006 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: sh4mem.c,v 1.13 2006-06-18 12:01:06 nkeynes Exp $
1.6 + * $Id: sh4mem.c,v 1.14 2006-06-27 11:02:48 nkeynes Exp $
1.7 * sh4mem.c is responsible for the SH4's access to memory (including memory
1.8 * mapped I/O), using the page maps created in mem.c
1.9 *
1.10 @@ -49,11 +49,11 @@
1.11 #define CHECK_WRITE_WATCH( addr, size )
1.12 #endif
1.13
1.14 -#define TRACE_IO( str, p, r, ... ) if(io_rgn[(uint32_t)p]->trace_flag) \
1.15 -TRACE( str " [%s.%s: %s]", __VA_ARGS__, \
1.16 +#define TRACE_IO( str, p, r, ... ) if(io_rgn[(uint32_t)p]->trace_flag && !MMIO_NOTRACE_BYNUM((uint32_t)p,r)) \
1.17 + TRACE( str " [%s.%s: %s]", __VA_ARGS__, \
1.18 MMIO_NAME_BYNUM((uint32_t)p), MMIO_REGID_BYNUM((uint32_t)p, r), \
1.19 MMIO_REGDESC_BYNUM((uint32_t)p, r) )
1.20 -#define TRACE_P4IO( str, io, r, ... ) if(io->trace_flag) \
1.21 +#define TRACE_P4IO( str, io, r, ... ) if(io->trace_flag && !MMIO_NOTRACE_IOBYNUM(io,r)) \
1.22 TRACE( str " [%s.%s: %s]", __VA_ARGS__, \
1.23 io->id, MMIO_REGID_IOBYNUM(io, r), \
1.24 MMIO_REGDESC_IOBYNUM(io, r) )
.