From 39c95ee0afdbf48865048d61df7e62172fceaa2d Mon Sep 17 00:00:00 2001 From: TomW Date: Sun, 17 Jan 2016 20:57:30 +0000 Subject: [PATCH] Moved BIOS mapping initialisation - SiS 496/497 now boots again without requiring hard reset. --- src/mem.c | 2 -- src/pc.c | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mem.c b/src/mem.c index 991d199..6696726 100644 --- a/src/mem.c +++ b/src/mem.c @@ -1881,8 +1881,6 @@ void mem_resize() mem_mapping_add(&ram_high_mapping, 0x100000, (mem_size - 1024) * 1024, mem_read_ram, mem_read_ramw, mem_read_raml, mem_write_ram, mem_write_ramw, mem_write_raml, ram + 0x100000, MEM_MAPPING_INTERNAL, NULL); mem_mapping_add(&ram_mid_mapping, 0xc0000, 0x40000, mem_read_ram, mem_read_ramw, mem_read_raml, mem_write_ram, mem_write_ramw, mem_write_raml, ram + 0xc0000, MEM_MAPPING_INTERNAL, NULL); - mem_add_bios(); - mem_mapping_add(&romext_mapping, 0xc8000, 0x08000, mem_read_romext, mem_read_romextw, mem_read_romextl, NULL, NULL, NULL, romext, 0, NULL); // pclog("Mem resize %i %i\n",mem_size,c); diff --git a/src/pc.c b/src/pc.c index e07ddd1..cf36b41 100644 --- a/src/pc.c +++ b/src/pc.c @@ -342,6 +342,7 @@ void resetpchard() disc_reset(); model_init(); + mem_add_bios(); video_init(); speaker_init(); sound_card_init(sound_card_current);