mirror of
https://github.com/simh/simh.git
synced 2026-02-23 23:53:10 +00:00
SCP: Fix timer initialization logic when CAS intrinsic instructions aren't available for Lock Free queue insertion
This commit is contained in:
@@ -1229,6 +1229,7 @@ extern int32 sim_asynch_inst_latency;
|
||||
#define AIO_QUEUE_MODE "Lock based asynchronous event queue access"
|
||||
#define AIO_INIT \
|
||||
if (1) { \
|
||||
int tmr; \
|
||||
pthread_mutexattr_t attr; \
|
||||
\
|
||||
pthread_mutexattr_init (&attr); \
|
||||
@@ -1242,7 +1243,8 @@ extern int32 sim_asynch_inst_latency;
|
||||
sim_asynch_queue = QUEUE_LIST_END; \
|
||||
sim_wallclock_queue = QUEUE_LIST_END; \
|
||||
sim_wallclock_entry = NULL; \
|
||||
sim_clock_cosched_queue = QUEUE_LIST_END; \
|
||||
for (tmr=0; tmr<SIM_NTIMERS; tmr++) \
|
||||
sim_clock_cosched_queue[tmr] = QUEUE_LIST_END; \
|
||||
} \
|
||||
else \
|
||||
(void)0
|
||||
|
||||
Reference in New Issue
Block a user