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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user