diff options
author | Stuart Bennett <sb476@cam.ac.uk> | 2007-11-27 00:24:52 +0000 |
---|---|---|
committer | Stuart Bennett <sb476@cam.ac.uk> | 2007-11-27 00:24:52 +0000 |
commit | 6544a40dfd128e8a3ef019a9225d2bd539c51400 (patch) | |
tree | 456b3f4394944f80cf6800421e7dbc106758a1f8 | |
parent | beb41a3c88989b631d0fa0d358ef5a3f50ceff91 (diff) |
More cheesy io parsing
-rw-r--r-- | nviolog.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -37,7 +37,7 @@ x_inw_l(CARD16 port) if (address) { if (bottom >= 0) { if (port == 0x3d2) { - fprintf(stderr, " Address 0x%08x read 0x%08x\n", address, val << 16 | bottom); + fprintf(stderr, " Address 0x%08x read 0x%08x\n", address, val << 16 | bottom); address = 0; } bottom = -1; @@ -54,6 +54,10 @@ x_inl_l(CARD16 port) CARD32 val; val = inl_local(port); fprintf(stderr, "%04x:%04x R32 port: %04x data: %08x\n", M.x86.R_CS, M.x86.R_IP - 1, port, (unsigned int)val); + if (address && port == 0x3d0) { + fprintf(stderr, " Address 0x%08x read 0x%08x\n", address, (unsigned int)val); + address = 0; + } return val; } @@ -82,7 +86,7 @@ x_outw_l(CARD16 port, CARD16 val) } else { if (top >= 0) { // top is actually bottom here... if (port == 0x3d2) { - fprintf(stderr, " Address 0x%08x write 0x%08x\n", address, val << 16 | top); + fprintf(stderr, " Address 0x%08x write 0x%08x\n", address, val << 16 | top); address = 0; } top = -1; |