Applied greatpsycho's latest changes (hopefully correctly).
This commit is contained in:
@@ -1380,7 +1380,7 @@ void mem_init(void)
|
|||||||
for (c = 0; c < (mem_size / 64); c++)
|
for (c = 0; c < (mem_size / 64); c++)
|
||||||
{
|
{
|
||||||
isram[c] = 1;
|
isram[c] = 1;
|
||||||
if (c >= 0xa && c <= 0xf)
|
if ((c >= 0xa && c <= 0xf) || (cpu_16bitbus && c >= 0xfe && c <= 0xff))
|
||||||
isram[c] = 0;
|
isram[c] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1476,7 +1476,7 @@ void mem_resize()
|
|||||||
for (c = 0; c < (mem_size / 64); c++)
|
for (c = 0; c < (mem_size / 64); c++)
|
||||||
{
|
{
|
||||||
isram[c] = 1;
|
isram[c] = 1;
|
||||||
if (c >= 0xa && c <= 0xf)
|
if ((c >= 0xa && c <= 0xf) || (cpu_16bitbus && c >= 0xfe && c <= 0xff))
|
||||||
isram[c] = 0;
|
isram[c] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
2
src/pc.c
2
src/pc.c
@@ -683,6 +683,7 @@ pc_reset_hard_init(void)
|
|||||||
initalmain(0, NULL);
|
initalmain(0, NULL);
|
||||||
|
|
||||||
/* Reset the general machine support modules. */
|
/* Reset the general machine support modules. */
|
||||||
|
cpu_set();
|
||||||
mem_resize();
|
mem_resize();
|
||||||
io_init();
|
io_init();
|
||||||
device_init();
|
device_init();
|
||||||
@@ -782,7 +783,6 @@ pc_reset_hard_init(void)
|
|||||||
device_add(&bugger_device);
|
device_add(&bugger_device);
|
||||||
|
|
||||||
/* Reset the CPU module. */
|
/* Reset the CPU module. */
|
||||||
cpu_set();
|
|
||||||
cpu_update_waitstates();
|
cpu_update_waitstates();
|
||||||
cpu_cache_int_enabled = cpu_cache_ext_enabled = 0;
|
cpu_cache_int_enabled = cpu_cache_ext_enabled = 0;
|
||||||
resetx86();
|
resetx86();
|
||||||
|
|||||||
Reference in New Issue
Block a user