Hi
Im trying to get teal (1.40b) and Truss to work with Active HDL 8.2 under windows XP, with pthreads.2 and the mingw gcc compiler that comes with the simulator.
I have managed to compile teal (PLI 1) and some of the tests passes. However the mutex_test crashes the simulator. I tried to play with the number of threads and up to 4 works. When I change the no of iterations to 1 I can create many (250) threads. So it seems to me that something with the mutex fails.
Regarding Truss, I can't compile since the different implementation of pthread_t.
Truss seems to rely on the id being 0 after thread cancelled?
Also this seems redundant since teal::stop_Thread is calling both ptrhead_cancel and pthread_join.
Anyone who has some ideas? Or should I give up and move to linux and a proper simulator?
Im not an C++ (or C) expert and the code is quite complex to follow.
Thanks and best regards
Rolf