Commit 1196be3713ebd728359ada9ebf292f0059694a73

Authored by ths
1 parent 70956b77

Better ioport debugging output.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2487 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 2 changed files with 6 additions and 4 deletions
... ... @@ -47,6 +47,8 @@
47 47 //#define DEBUG_TB_CHECK
48 48 //#define DEBUG_TLB_CHECK
49 49  
  50 +//#define DEBUG_IOPORT
  51 +
50 52 #if !defined(CONFIG_USER_ONLY)
51 53 /* TB consistency checks only implemented for usermode emulation. */
52 54 #undef DEBUG_TB_CHECK
... ...
... ... @@ -199,7 +199,7 @@ PicState2 *isa_pic;
199 199 uint32_t default_ioport_readb(void *opaque, uint32_t address)
200 200 {
201 201 #ifdef DEBUG_UNUSED_IOPORT
202   - fprintf(stderr, "inb: port=0x%04x\n", address);
  202 + fprintf(stderr, "unused inb: port=0x%04x\n", address);
203 203 #endif
204 204 return 0xff;
205 205 }
... ... @@ -207,7 +207,7 @@ uint32_t default_ioport_readb(void *opaque, uint32_t address)
207 207 void default_ioport_writeb(void *opaque, uint32_t address, uint32_t data)
208 208 {
209 209 #ifdef DEBUG_UNUSED_IOPORT
210   - fprintf(stderr, "outb: port=0x%04x data=0x%02x\n", address, data);
  210 + fprintf(stderr, "unused outb: port=0x%04x data=0x%02x\n", address, data);
211 211 #endif
212 212 }
213 213  
... ... @@ -231,7 +231,7 @@ void default_ioport_writew(void *opaque, uint32_t address, uint32_t data)
231 231 uint32_t default_ioport_readl(void *opaque, uint32_t address)
232 232 {
233 233 #ifdef DEBUG_UNUSED_IOPORT
234   - fprintf(stderr, "inl: port=0x%04x\n", address);
  234 + fprintf(stderr, "unused inl: port=0x%04x\n", address);
235 235 #endif
236 236 return 0xffffffff;
237 237 }
... ... @@ -239,7 +239,7 @@ uint32_t default_ioport_readl(void *opaque, uint32_t address)
239 239 void default_ioport_writel(void *opaque, uint32_t address, uint32_t data)
240 240 {
241 241 #ifdef DEBUG_UNUSED_IOPORT
242   - fprintf(stderr, "outl: port=0x%04x data=0x%02x\n", address, data);
  242 + fprintf(stderr, "unused outl: port=0x%04x data=0x%02x\n", address, data);
243 243 #endif
244 244 }
245 245  
... ...