Commit 1196be3713ebd728359ada9ebf292f0059694a73
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
exec.c
| @@ -47,6 +47,8 @@ | @@ -47,6 +47,8 @@ | ||
| 47 | //#define DEBUG_TB_CHECK | 47 | //#define DEBUG_TB_CHECK |
| 48 | //#define DEBUG_TLB_CHECK | 48 | //#define DEBUG_TLB_CHECK |
| 49 | 49 | ||
| 50 | +//#define DEBUG_IOPORT | ||
| 51 | + | ||
| 50 | #if !defined(CONFIG_USER_ONLY) | 52 | #if !defined(CONFIG_USER_ONLY) |
| 51 | /* TB consistency checks only implemented for usermode emulation. */ | 53 | /* TB consistency checks only implemented for usermode emulation. */ |
| 52 | #undef DEBUG_TB_CHECK | 54 | #undef DEBUG_TB_CHECK |
vl.c
| @@ -199,7 +199,7 @@ PicState2 *isa_pic; | @@ -199,7 +199,7 @@ PicState2 *isa_pic; | ||
| 199 | uint32_t default_ioport_readb(void *opaque, uint32_t address) | 199 | uint32_t default_ioport_readb(void *opaque, uint32_t address) |
| 200 | { | 200 | { |
| 201 | #ifdef DEBUG_UNUSED_IOPORT | 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 | #endif | 203 | #endif |
| 204 | return 0xff; | 204 | return 0xff; |
| 205 | } | 205 | } |
| @@ -207,7 +207,7 @@ uint32_t default_ioport_readb(void *opaque, uint32_t address) | @@ -207,7 +207,7 @@ uint32_t default_ioport_readb(void *opaque, uint32_t address) | ||
| 207 | void default_ioport_writeb(void *opaque, uint32_t address, uint32_t data) | 207 | void default_ioport_writeb(void *opaque, uint32_t address, uint32_t data) |
| 208 | { | 208 | { |
| 209 | #ifdef DEBUG_UNUSED_IOPORT | 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 | #endif | 211 | #endif |
| 212 | } | 212 | } |
| 213 | 213 | ||
| @@ -231,7 +231,7 @@ void default_ioport_writew(void *opaque, uint32_t address, uint32_t data) | @@ -231,7 +231,7 @@ void default_ioport_writew(void *opaque, uint32_t address, uint32_t data) | ||
| 231 | uint32_t default_ioport_readl(void *opaque, uint32_t address) | 231 | uint32_t default_ioport_readl(void *opaque, uint32_t address) |
| 232 | { | 232 | { |
| 233 | #ifdef DEBUG_UNUSED_IOPORT | 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 | #endif | 235 | #endif |
| 236 | return 0xffffffff; | 236 | return 0xffffffff; |
| 237 | } | 237 | } |
| @@ -239,7 +239,7 @@ uint32_t default_ioport_readl(void *opaque, uint32_t address) | @@ -239,7 +239,7 @@ uint32_t default_ioport_readl(void *opaque, uint32_t address) | ||
| 239 | void default_ioport_writel(void *opaque, uint32_t address, uint32_t data) | 239 | void default_ioport_writel(void *opaque, uint32_t address, uint32_t data) |
| 240 | { | 240 | { |
| 241 | #ifdef DEBUG_UNUSED_IOPORT | 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 | #endif | 243 | #endif |
| 244 | } | 244 | } |
| 245 | 245 |