SCP: Assure that a failure message is emitted before calling abort().
This commit is contained in:
parent
72d4e73024
commit
58925f7672
1 changed files with 2 additions and 1 deletions
|
@ -916,6 +916,7 @@ extern int32 sim_asynch_inst_latency;
|
||||||
sim_debug (SIM_DBG_EVENT, sim_dflt_dev, "Queue Corruption detected\n");\
|
sim_debug (SIM_DBG_EVENT, sim_dflt_dev, "Queue Corruption detected\n");\
|
||||||
fclose(sim_deb); \
|
fclose(sim_deb); \
|
||||||
} \
|
} \
|
||||||
|
sim_printf("Queue Corruption detected\n"); \
|
||||||
abort(); \
|
abort(); \
|
||||||
} \
|
} \
|
||||||
if (lock) \
|
if (lock) \
|
||||||
|
@ -1358,7 +1359,7 @@ extern int32 sim_asynch_inst_latency;
|
||||||
AIO_UNLOCK; \
|
AIO_UNLOCK; \
|
||||||
} else (void)0
|
} else (void)0
|
||||||
#endif /* USE_AIO_INTRINSICS */
|
#endif /* USE_AIO_INTRINSICS */
|
||||||
#define AIO_VALIDATE if (!pthread_equal ( pthread_self(), sim_asynch_main_threadid )) abort()
|
#define AIO_VALIDATE if (!pthread_equal ( pthread_self(), sim_asynch_main_threadid )) {sim_printf("Improper thread context for operation\n"); abort();}
|
||||||
#define AIO_CHECK_EVENT \
|
#define AIO_CHECK_EVENT \
|
||||||
if (0 > --sim_asynch_check) { \
|
if (0 > --sim_asynch_check) { \
|
||||||
AIO_UPDATE_QUEUE; \
|
AIO_UPDATE_QUEUE; \
|
||||||
|
|
Loading…
Add table
Reference in a new issue