Make RTC/NVR a normal device instead of a special thing. Fixes nvr_recalc() being called on systems without NVR, which could cause timer crashes.
This commit is contained in:
parent
58e42fda81
commit
3508059f16
4 changed files with 90 additions and 52 deletions
2
src/pc.c
2
src/pc.c
|
|
@ -601,7 +601,6 @@ void fullspeed()
|
|||
// else setpitclock(clocks[AT?1:0][cpuspeed2][0]);
|
||||
}
|
||||
atfullspeed=1;
|
||||
nvr_recalc();
|
||||
}
|
||||
|
||||
void speedchanged()
|
||||
|
|
@ -610,7 +609,6 @@ void speedchanged()
|
|||
setpitclock(models[model].cpu[cpu_manufacturer].cpus[cpu].rspeed);
|
||||
else
|
||||
setpitclock(14318184.0);
|
||||
nvr_recalc();
|
||||
}
|
||||
|
||||
void closepc()
|
||||
|
|
|
|||
Loading…
Reference in a new issue