mirror of https://github.com/proxmox/mirror_qemu
Better ioport debugging output.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2487 c046a42c-6fe2-441c-8c8c-71466251a162master
parent
70956b7719
commit
1196be3713
2
exec.c
2
exec.c
|
@ -47,6 +47,8 @@
|
||||||
//#define DEBUG_TB_CHECK
|
//#define DEBUG_TB_CHECK
|
||||||
//#define DEBUG_TLB_CHECK
|
//#define DEBUG_TLB_CHECK
|
||||||
|
|
||||||
|
//#define DEBUG_IOPORT
|
||||||
|
|
||||||
#if !defined(CONFIG_USER_ONLY)
|
#if !defined(CONFIG_USER_ONLY)
|
||||||
/* TB consistency checks only implemented for usermode emulation. */
|
/* TB consistency checks only implemented for usermode emulation. */
|
||||||
#undef DEBUG_TB_CHECK
|
#undef DEBUG_TB_CHECK
|
||||||
|
|
8
vl.c
8
vl.c
|
@ -199,7 +199,7 @@ PicState2 *isa_pic;
|
||||||
uint32_t default_ioport_readb(void *opaque, uint32_t address)
|
uint32_t default_ioport_readb(void *opaque, uint32_t address)
|
||||||
{
|
{
|
||||||
#ifdef DEBUG_UNUSED_IOPORT
|
#ifdef DEBUG_UNUSED_IOPORT
|
||||||
fprintf(stderr, "inb: port=0x%04x\n", address);
|
fprintf(stderr, "unused inb: port=0x%04x\n", address);
|
||||||
#endif
|
#endif
|
||||||
return 0xff;
|
return 0xff;
|
||||||
}
|
}
|
||||||
|
@ -207,7 +207,7 @@ uint32_t default_ioport_readb(void *opaque, uint32_t address)
|
||||||
void default_ioport_writeb(void *opaque, uint32_t address, uint32_t data)
|
void default_ioport_writeb(void *opaque, uint32_t address, uint32_t data)
|
||||||
{
|
{
|
||||||
#ifdef DEBUG_UNUSED_IOPORT
|
#ifdef DEBUG_UNUSED_IOPORT
|
||||||
fprintf(stderr, "outb: port=0x%04x data=0x%02x\n", address, data);
|
fprintf(stderr, "unused outb: port=0x%04x data=0x%02x\n", address, data);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -231,7 +231,7 @@ void default_ioport_writew(void *opaque, uint32_t address, uint32_t data)
|
||||||
uint32_t default_ioport_readl(void *opaque, uint32_t address)
|
uint32_t default_ioport_readl(void *opaque, uint32_t address)
|
||||||
{
|
{
|
||||||
#ifdef DEBUG_UNUSED_IOPORT
|
#ifdef DEBUG_UNUSED_IOPORT
|
||||||
fprintf(stderr, "inl: port=0x%04x\n", address);
|
fprintf(stderr, "unused inl: port=0x%04x\n", address);
|
||||||
#endif
|
#endif
|
||||||
return 0xffffffff;
|
return 0xffffffff;
|
||||||
}
|
}
|
||||||
|
@ -239,7 +239,7 @@ uint32_t default_ioport_readl(void *opaque, uint32_t address)
|
||||||
void default_ioport_writel(void *opaque, uint32_t address, uint32_t data)
|
void default_ioport_writel(void *opaque, uint32_t address, uint32_t data)
|
||||||
{
|
{
|
||||||
#ifdef DEBUG_UNUSED_IOPORT
|
#ifdef DEBUG_UNUSED_IOPORT
|
||||||
fprintf(stderr, "outl: port=0x%04x data=0x%02x\n", address, data);
|
fprintf(stderr, "unused outl: port=0x%04x data=0x%02x\n", address, data);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue