Monster patch to clean up a lot of cruft in the code, and reduce the RAM footptiny of a running XT machine from about 680MB down to about 80MB. Yes, 600MB of unused 0x00's.

This commit is contained in:
waltje
2018-03-17 23:13:46 -05:00
parent a86d717ae1
commit 1c60e22813
217 changed files with 9300 additions and 9128 deletions

View File

@@ -44,7 +44,7 @@
* configuration register (CTRL_SPCFG bit set) but have to
* remember that stuff first...
*
* Version: @(#)bugger.c 1.0.1 2018/02/14
* Version: @(#)bugger.c 1.0.2 2018/03/15
*
* Author: Fred N. van Kempen, <decwiz@yahoo.com>
*
@@ -340,7 +340,7 @@ bug_read(uint16_t port, void *priv)
/* Initialize the ISA BusBugger emulator. */
static void *
bug_init(device_t *info)
bug_init(const device_t *info)
{
pclog("%s, I/O=%04x\n", info->name, BUGGER_ADDR);
@@ -351,7 +351,7 @@ bug_init(device_t *info)
bug_read, NULL, NULL, bug_write, NULL, NULL, NULL);
/* Just so its not NULL. */
return(info);
return((void *)info);
}
@@ -364,7 +364,7 @@ bug_close(UNUSED(void *priv))
}
device_t bugger_device = {
const device_t bugger_device = {
"ISA/PCI Bus Bugger",
DEVICE_ISA | DEVICE_AT,
0,