Moved codegen_init() back to after mem_init() in pc.c:pc_init_modules(), fixes the emulator crashing on initialization with the recompiler enabled.
This commit is contained in:
4
src/pc.c
4
src/pc.c
@@ -350,11 +350,13 @@ pc_init_modules(void)
|
|||||||
cpuspeed2 = (AT) ? 2 : 1;
|
cpuspeed2 = (AT) ? 2 : 1;
|
||||||
atfullspeed = 0;
|
atfullspeed = 0;
|
||||||
|
|
||||||
codegen_init();
|
|
||||||
|
|
||||||
random_init();
|
random_init();
|
||||||
|
|
||||||
mem_init();
|
mem_init();
|
||||||
|
|
||||||
|
codegen_init();
|
||||||
|
|
||||||
rom_load_bios(romset);
|
rom_load_bios(romset);
|
||||||
mem_add_bios();
|
mem_add_bios();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user