Hi Eberle, The Makefile builds TWO sets of binaries… one called test_XXX_p using the pthreads library, and one called test_XXX using the m5threads library (i.e. pthreads.o), so that seems to be ok… Was the same target name specified for both before?
Hmm, is the command I use to run the binary ok? ./build/X86_SE/m5.debug configs/example/se.py --cmd=m5threads/tests/test_pthreadsbasic Did you try X86 at all, or did you run the cross-compiled sparc binaries through M5? And using the same command as above (with SPARC instead of X86)? Thanks, Tushar From: m5-dev-boun...@m5sim.org [mailto:m5-dev-boun...@m5sim.org] On Behalf Of Eberle Sent: Saturday, July 10, 2010 6:00 PM To: M5 Developer List Subject: Re: [m5-dev] how to use m5threads? Oh, right! You're using that makefile! I remembered that it had two problems! When it compiles, it executes the correct gcc command line and in the next line it executes a gcc line (if I remember correctly) using the system pthread library. Two make targets had this issue. Resulting in an incorrect binary. I presume that's what is happening. -- Eberle A. Rambo. On Fri, Jul 9, 2010 at 10:07 PM, Krishna, Tushar <tushar.kris...@amd.com<mailto:tushar.kris...@amd.com>> wrote: Hi Eberle, Yes I compiled with the –static flag. gcc -ggdb3 -O3 -D__DEBUG -c ../pthread.c -o ../pthread.o g++ -g -O3 –D__DEBUG -c -o test_pthreadbasic.o test_pthreadbasic.cpp g++ -static -o test_pthreadbasic test_pthreadbasic.o ../pthread.o is what the Makefile in m5threads/test does by default. Thanks, Tushar From: m5-dev-boun...@m5sim.org<mailto:m5-dev-boun...@m5sim.org> [mailto:m5-dev-boun...@m5sim.org<mailto:m5-dev-boun...@m5sim.org>] On Behalf Of Eberle Sent: Friday, July 09, 2010 6:00 PM To: M5 Developer List Subject: Re: [m5-dev] how to use m5threads? Hi Tushar, yes, something like that happened to me. You compiled (linked) with the -static flag, right? -- Eberle A. Rambo. On Fri, Jul 9, 2010 at 9:30 PM, Krishna, Tushar <tushar.kris...@amd.com<mailto:tushar.kris...@amd.com>> wrote: Thanks Eberle. I did a make on the tests within m5threads using my system's regular gcc/g++ (for x86), and tried running one of the binaries through M5 in X86_SE mode like this: ./build/X86_SE/m5.debug configs/example/se.py --cmd=m5threads/tests/test_pthreadsbasic I get the following error: Global frequency set at 1000000000000 ticks per second 0: system.remote_gdb.listener: listening for remote gdb #0 on port 7000 **** REAL SIMULATION **** info: Entering event queue @ 0. Starting simulation... panic: Tried to write unmapped address 0. @ cycle 467000 [translate:/tmp/tukrishna/m5/build/X86_SE/arch/x86/tlb.cc, line 635] Memory Usage: 578888 KBytes For more information see: http://www.m5sim.org/panic/d71dd0bc Program aborted at cycle 467000 Firstly, I hope this this a 'correct' way to run the binaries compiled using m5threads through M5? I tried the same with M5's hello x86 binary and it worked fine. Looking at the gdb stack, and trace-flags, shows me that the instruction MOV_M_R seems to be getting 0 as the address. And this seems to happen after a bunch of correct address translations, not at the beginning of the simulation. I am not sure if this is a problem with the way I run the binary, an X86_SE issue or something else? I observed that the virtual address being 0 error I get is similar to an error discussed a few months back on the users forum? Thanks! Tushar Date: Thu, 8 Jul 2010 13:06:19 -0300 From: Eberle <rambo.u...@gmail.com<mailto:rambo.u...@gmail.com>> To: M5 Developer List <m5-dev@m5sim.org<mailto:m5-dev@m5sim.org>> Subject: Re: [m5-dev] how to use m5threads? Message-ID: <aanlktinm3sifzrfmluu7r07hvmasurxiuw1iyhunl...@mail.gmail.com<mailto:aanlktinm3sifzrfmluu7r07hvmasurxiuw1iyhunl...@mail.gmail.com>> Content-Type: text/plain; charset="utf-8" The m5thread library should be used in the linkage process instead of the pthread library (for instance: -L$M5THREAD_FOLDER -l$LIB_M5THREAD ). -- Eberle A. Rambo. On Wed, Jul 7, 2010 at 3:58 PM, Krishna, Tushar <tushar.kris...@amd.com<mailto:tushar.kris...@amd.com>>wrote: > Hi, > > Could someone give me some pointers on how to use the m5threads package ? > > From what I understood by looking at the mailing list archives, currently > it only works for SPARC_SE and X86_SE right? > > > > My aim is to try and run some multi-threaded benchmarks using the m5threads > package. > > > > Thanks, > > Tushar > > _______________________________________________ > m5-dev mailing list > m5-dev@m5sim.org<mailto:m5-dev@m5sim.org> > http://m5sim.org/mailman/listinfo/m5-dev > > _______________________________________________ m5-dev mailing list m5-dev@m5sim.org<mailto:m5-dev@m5sim.org> http://m5sim.org/mailman/listinfo/m5-dev _______________________________________________ m5-dev mailing list m5-dev@m5sim.org<mailto:m5-dev@m5sim.org> http://m5sim.org/mailman/listinfo/m5-dev
_______________________________________________ m5-dev mailing list m5-dev@m5sim.org http://m5sim.org/mailman/listinfo/m5-dev