--- previous/src/cpu/hatari-glue.c 2018/04/24 19:30:09 1.1.1.3 +++ previous/src/cpu/hatari-glue.c 2018/04/24 19:33:33 1.1.1.5 @@ -15,7 +15,6 @@ const char HatariGlue_fileid[] = "Hatari #include "main.h" #include "configuration.h" #include "video.h" -#include "sysReg.h" #include "sysdeps.h" #include "maccess.h" @@ -26,53 +25,16 @@ const char HatariGlue_fileid[] = "Hatari struct uae_prefs currprefs, changed_prefs; -int pendingInterrupts = 0; - - -/** - * Reset custom chips - */ -void customreset(void) -{ - pendingInterrupts = 0; - - /* In case the 6301 was executing a custom program from its RAM */ - /* we must turn it back to the 'normal' mode. */ -// IKBD_Reset_ExeMode (); - - /* Reseting the GLUE video chip should also set freq/res register to 0 */ - Video_Reset_Glue (); -} - - -/** - * Return interrupt number (1 - 7), 0 means no interrupt. - * Note that the interrupt stays pending if it can't be executed yet - * due to the interrupt level field in the SR. - */ -int intlev(void) -{ - /* Poll interrupt level from interrupt status and mask registers - * --> see sysReg.c - */ - return get_interrupt_level(); -} - /** * Initialize 680x0 emulation */ -int Init680x0(void) -{ +int Init680x0(void) { currprefs.cpu_level = changed_prefs.cpu_level = ConfigureParams.System.nCpuLevel; switch (currprefs.cpu_level) { - case 0 : currprefs.cpu_model = 68000; break; - case 1 : currprefs.cpu_model = 68010; break; - case 2 : currprefs.cpu_model = 68020; break; case 3 : currprefs.cpu_model = 68030; break; case 4 : currprefs.cpu_model = 68040; break; - case 5 : currprefs.cpu_model = 68060; break; - default: fprintf (stderr, "Init680x0() : Error, cpu_level unknown\n"); + default: fprintf (stderr, "Init680x0() : Error, cpu_level not supported (%i)\n",currprefs.cpu_model); } currprefs.fpu_model = changed_prefs.fpu_model = ConfigureParams.System.n_FPUType; @@ -89,8 +51,6 @@ int Init680x0(void) } currprefs.cpu_compatible = changed_prefs.cpu_compatible = ConfigureParams.System.bCompatibleCpu; - currprefs.address_space_24 = changed_prefs.address_space_24 = ConfigureParams.System.bAddressSpace24; - currprefs.cpu_cycle_exact = changed_prefs.cpu_cycle_exact = ConfigureParams.System.bCycleExactCpu; currprefs.fpu_strict = changed_prefs.fpu_strict = ConfigureParams.System.bCompatibleFPU; currprefs.mmu_model = changed_prefs.mmu_model = ConfigureParams.System.bMMU?changed_prefs.cpu_model:0;