--- uae/src/md-i386-gcc/support.c 2018/04/24 16:42:54 1.1.1.3 +++ uae/src/md-i386-gcc/support.c 2018/04/24 16:45:38 1.1.1.4 @@ -237,6 +237,9 @@ static RETSIGTYPE alarmhandler(int foo) } } +#include +jmp_buf catch_test; + #ifdef __cplusplus static RETSIGTYPE illhandler(...) #else @@ -244,14 +247,17 @@ static RETSIGTYPE illhandler(int foo) #endif { rpt_available = 0; + longjmp(catch_test,1); } void machdep_init (void) { rpt_available = 1; + fprintf(stderr,"Testing the RDTSC instruction ... "); signal (SIGILL, illhandler); - read_processor_time (); + if(setjmp(catch_test) == 0) read_processor_time(); signal (SIGILL, SIG_DFL); + fprintf(stderr,"done.\n"); if (! rpt_available) { fprintf (stderr, "Your processor does not support the RDTSC instruction.\n"); return;