SCP: Fix clock initialization in AIO_INIT when __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 are not available.
This commit is contained in:
parent
11a72cef93
commit
e37d0658fa
1 changed files with 3 additions and 1 deletions
|
@ -1228,6 +1228,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); \
|
||||
|
@ -1241,7 +1242,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
|
||||
|
|
Loading…
Add table
Reference in a new issue