Hi all, My gem5 version is fa70478413e4650d0058cbfe81fd5ce362101994. I'm trying to run a multithreaded workload in SE mode, but it's crashing. Here is my very simple workload:
#include <pthread.h> #include <iostream> using namespace std; int sum[4]; void* thread(void* sum) { for (int i = 0; i < 1000; i++) *((int*)sum) += i; return 0; } int main() { sum[0] = sum[1] = sum[2] = sum[3] = 0; pthread_t threads[4]; for (int tid = 0; tid < 4; tid++) pthread_create(&threads[tid], NULL, thread, &sum[tid]); for (int tid = 0; tid < 4; tid++) pthread_join(threads[tid], NULL); cout << sum [0] << " " << sum[1] << " " << sum[2] << " " << sum[3] << endl; return 0; } When I run it with: build/X86/gem5.opt --debug-flags=PseudoInst configs/example/se.py --cmd=./multi --num-cpus=4 --ruby --cpu-type=DerivO3CPU I get: panic: panic condition !clobber occurred: EmulationPageTable::allocate: addr 0x7ffff778d000 already mapped I found an existing thread that discusses this but no update was posted: https://www.mail-archive.com/gem5-users@gem5.org/msg17926.html Was this ever resolved? Thanks, Farhad
_______________________________________________ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s