mirror of
https://github.com/open-simh/simh.git
synced 2026-01-25 11:55:43 +00:00
TIMER: Fixed calibration idle skip percent logic
Also:
- Added more statistics
- Made sleep measurements more precise
- Correct idle sleep decision logic without regard to host tick size
- Fix calibration setup/teardown when host tick size is large (>10ms)
- Generalized large host tick test capability (MS_MIN_GRANULARITY)
- Fixed Windows sim_os_msec() to always use timeGetTime()
- Fixed coschedule routines (that don't mentoin a tmr) to default to
timer 0 and fallback to the internal timer otherwise.
- Removed dependency on sizeof(tv_sec) in timespec structure for MinGW
This commit is contained in:
@@ -76,7 +76,7 @@ int clock_gettime(int clock_id, struct timespec *tp);
|
||||
#define SIM_NTIMERS 8 /* # timers */
|
||||
#define SIM_TMAX 500 /* max timer makeup */
|
||||
|
||||
#define SIM_INITIAL_IPS 50000 /* uncalibrated assumption */
|
||||
#define SIM_INITIAL_IPS 500000 /* uncalibrated assumption */
|
||||
/* about instructions per second */
|
||||
|
||||
#define SIM_IDLE_CAL 10 /* ms to calibrate */
|
||||
|
||||
Reference in New Issue
Block a user