1
0
mirror of https://github.com/rcornwell/sims.git synced 2026-02-10 10:10:55 +00:00

I7000: Updated to new SCP, untested.

This commit is contained in:
Richard Cornwell
2017-03-12 22:40:54 -04:00
parent c1eb37d473
commit 9e1ae092ad
3 changed files with 7 additions and 5 deletions

View File

@@ -3744,6 +3744,8 @@ cpu_reset(DEVICE * dptr)
timer_enable = 0;
cind = 2;
zind = oind = dind = euind = eoind = 0;
if (cpu_unit.flags & OPTION_PROT)
sim_rtcn_init_unit (&cpu_unit, cpu_unit.wait, TMR_RTC);
return SCPE_OK;
}

View File

@@ -300,11 +300,6 @@ sim_instr(void)
reason = 0;
if (cpu_unit.flags & OPTION_TIMER) {
sim_rtcn_init(cpu_unit.wait, TMR_RTC);
sim_activate(&cpu_unit, cpu_unit.wait);
}
iowait = 0;
stopnext = 0;
while (reason == 0) { /* loop until halted */
@@ -2782,6 +2777,10 @@ cpu_reset(DEVICE * dptr)
inds = PSIGN;
pri_enb = 1;
sim_brk_types = sim_brk_dflt = SWMASK('E');
if (cpu_unit.flags & OPTION_TIMER) {
sim_rtcn_init_unit (&cpu_unit, cpu_unit.wait, TMR_RTC);
sim_activate(&cpu_unit, cpu_unit.wait);
}
return SCPE_OK;
}

View File

@@ -4153,6 +4153,7 @@ cpu_reset(DEVICE * dptr)
limitaddr = 077777;
memmask = MEMMASK;
if (cpu_unit.flags & OPTION_TIMER) {
sim_rtcn_init_unit (&cpu_unit, cpu_unit.wait, TMR_RTC);
sim_activate(&cpu_unit, cpu_unit.wait);
}