Skip to content

Commit

Permalink
Some more cleanups in the unmapped device.
Browse files Browse the repository at this point in the history
Related cleanup in the rombios code (old debugger port is obsolete).
  • Loading branch information
vruppert committed Jan 23, 2025
1 parent e379543 commit f856914
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions bochs/iodev/unmapped.cc
Original file line number Diff line number Diff line change
Expand Up @@ -249,28 +249,22 @@ void bx_unmapped_c::write(Bit32u address, Bit32u value, unsigned io_len)
BX_FATAL(("Shutdown port: shutdown requested"));
}
break;
/*
case 0xfedc:
bx_dbg.io_debugger = (value > 0);
BX_DEBUG(("DEBUGGER = %u", (unsigned) bx_dbg.io_debugger));
break;
*/
default:
break;
}

switch (io_len) {
case 1:
BX_DEBUG(("unmapped: 8-bit write to %04x = %02x", address, value));
BX_DEBUG(("8-bit write to %04x = %02x", address, value));
break;
case 2:
BX_DEBUG(("unmapped: 16-bit write to %04x = %04x", address, value));
BX_DEBUG(("16-bit write to %04x = %04x", address, value));
break;
case 4:
BX_DEBUG(("unmapped: 32-bit write to %04x = %08x", address, value));
BX_DEBUG(("32-bit write to %04x = %08x", address, value));
break;
default:
BX_PANIC(("unmapped: %d-bit write to %04x = %x", io_len * 8, address, value));
BX_PANIC(("%d-bit write to %04x = %x", io_len * 8, address, value));
break;
}
}
Expand Down

0 comments on commit f856914

Please sign in to comment.