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