Hello, We've made a few changes to the m5threads pthreads implementation, and would like to push these changes upstream. The attached patch includes the changesets required to merge with the repo at repo.gem5.org/m5threads/
The changes are: * Change spin_lock_x86 to use the 'ja' instruction, rather than 'jne'. This avoids a potential infinite loop. * Change pthread_setspecific to avoid a situation where one could falsely access an uninitialized key. * Change pthread_getaffinity_np to zero (and thus initialize) the affinity structure. * Add trivial Makefile * Add calls to DEBUG (turned off by default) to more functions to aid in tracing errors. - Branden -- Branden J. Moore Sandia National Labs (505) 844-0989 [email protected]
_______________________________________________ gem5-dev mailing list [email protected] http://m5sim.org/mailman/listinfo/gem5-dev
