turn logging of unhandled I/O R/W ops back on

Tue, 28 Dec 2010 18:19:48 +0000

author
Philip Pemberton <philpem@philpem.me.uk>
date
Tue, 28 Dec 2010 18:19:48 +0000
changeset 64
5005879cb6fc
parent 63
f772d3c40531
child 65
dc28926b353c

turn logging of unhandled I/O R/W ops back on

src/memory.c file | annotate | diff | revisions
     1.1 diff -r f772d3c40531 -r 5005879cb6fc src/memory.c
     1.2 --- a/src/memory.c	Tue Dec 28 17:47:01 2010 +0000
     1.3 +++ b/src/memory.c	Tue Dec 28 18:19:48 2010 +0000
     1.4 @@ -183,10 +183,10 @@
     1.5  
     1.6  // Logging macros
     1.7  #define LOG_NOT_HANDLED_R(bits)															\
     1.8 -	printf("unhandled read%02d, addr=0x%08X\n", bits, address);
     1.9 +	if (!handled) printf("unhandled read%02d, addr=0x%08X\n", bits, address);
    1.10  
    1.11  #define LOG_NOT_HANDLED_W(bits)															\
    1.12 -	printf("unhandled write%02d, addr=0x%08X, data=0x%08X\n", bits, address, value);
    1.13 +	if (!handled) printf("unhandled write%02d, addr=0x%08X, data=0x%08X\n", bits, address, data);
    1.14  
    1.15  /********************************************************
    1.16   * I/O read/write functions
    1.17 @@ -391,6 +391,8 @@
    1.18  				}
    1.19  		}
    1.20  	}
    1.21 +
    1.22 +	LOG_NOT_HANDLED_W(bits);
    1.23  }/*}}}*/
    1.24  
    1.25  uint32_t IoRead(uint32_t address, int bits)/*{{{*/
    1.26 @@ -533,6 +535,9 @@
    1.27  				}
    1.28  		}
    1.29  	}
    1.30 +
    1.31 +	LOG_NOT_HANDLED_R(bits);
    1.32 +
    1.33  	return data;
    1.34  }/*}}}*/
    1.35