Skip to content

Commit 7f34504

Browse files
joevtdingusdev
authored andcommitted
atimach64gx: Log I/O register accesses.
1 parent 48fd95e commit 7f34504

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

devices/video/atimach64gx.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,8 @@ bool AtiMach64Gx::pci_io_read(uint32_t offset, uint32_t size, uint32_t* res)
288288
// CONFIG_CNTL is accessible from I/O space only
289289
if ((offset >> 2) == ATI_CONFIG_CNTL) {
290290
result = read_mem(((uint8_t *)&this->config_cntl) + (offset & 3), size);
291+
LOG_F(WARNING, "%s: read %s %04x.%c = %0*x", this->name.c_str(),
292+
get_reg_name(offset >> 2), offset, SIZE_ARG(size), size * 2, (uint32_t)result);
291293
} else {
292294
result = BYTESWAP_SIZED(this->read_reg(offset, size), size);
293295
}

0 commit comments

Comments
 (0)