Hi,

Are you following this for with X86 changed to ARM.

http://lacasa.uah.edu/portal/Upload/tutorials/gem5/GettingStarted-m5threads.txt


Thanks

2016-05-19 22:26 GMT+02:00 Shail Dave <[email protected]>:

> Hi,
>
> Hope you are doing good. I am trying to execute two pthreads on gem5 in SE
> mode.  What I want is to run two light-weight threads on gem5 in SE mode.
> So I found m5threads. But, I am unsure that how I should compile and link
> my test file with m5threads (I want to test basically creation and joining
> of 2 threads several times or wait and execute 2 threads through
> conditional signaling).
>
> I am not finding the exact information and struggling to progress about
> how I should compile and execute a file test.c . I want to execute it on
> ARM ISA in gem5 and I want to have binary generated through arm cross
> compiler.  I am appending my attempt for given test program in m5threads
> for your kind reference.
>
> ------------------------------------------------------------------------------------------------
> My attempt: (For Sample File test_pthreadbasic.cpp in m5threads/tests/)
>
> cd ~/
> hg clone  http://repo.gem5.org/m5threads
> cd m5threads/
>
> make
> cd ~/m5threads/tests/
> arm-linux-gnueabi-g++ -c test_pthreadbasic.cpp -I ~/gem5/util/m5/ --static
> arm-linux-gnueabi-g++ -o test_pthreadbasic test_pthreadbasic.o
> ../pthread.o ~/gem5/util/m5/m5op_arm.S -I ~/gem5/util/m5/ --static or
> arm-linux-gnueabi-g++ test_pthreadbasic.cpp -I ~/gem5/util/m5/
> ~/gem5/util/m5/m5op_arm.S -static ~/m5threads/libpthread.a -o test_temp)
>
> I am getting an error as
>
> /home/shail/m5threads/libpthread.a: error adding symbols: File format not
> recognized    collect2: error: ld returned 1 exit status
>
> ------------------------------------------------------------------------------------------------
>
> It would be great if I can know what command exactly should I apply to get
> binary for ARM with simple c/cpp file.  Thank you very much!
>
> Best Regards,
> Shail
>
> =========================================
> Shail Dave
> Research Assistant, Compiler Micro-architecture Lab
> Graduate Student, Computer Engineering
> Ira A. Fulton Schools of Engineering
> Arizona State University
> Shail Dave, ASU Directory Profile
> <https://webapp4.asu.edu/directory/person/2339222>
> =========================================
>
> ᐧ
>
> _______________________________________________
> gem5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>



-- 

Regards,
Abdul Mutaal
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to