One thing I noticed is that you said you compiled your binaries on a SunOS
machine. SPARC SE only supports Linux binaries at the moment, so you'll need to
recompile. Also, SPARC support is not totally production ready right now, so you
could quite possibly run into problems which are not your fault. If you need
something that's very likely to work, I would recommend using Alpha. If you
decide to use SPARC, please let us know of any bugs you might find and/or fix.

Gabe

Quoting Jiayuan <[EMAIL PROTECTED]>:

> Thanks a lot Steve!
>
> I am trying to model a CMP architecture. I think at this stage, I will not
> model OS. I would prefer to run with syscall emulation mode. So I have two
> following questions:
>
> 1. is it possible to simulate a CMP under SE mode? If so, do you have any
> example scripts on configuring the CMP architecture? (in configs/example,
> se.py has only one SimpleCPU configured)
>
> 2. Since I have to run threads on this configuration with SE mode, I will
> need to implement some thread creation/termination primitives in the
> simulator. There might be other primitives as well. This may involve: adding
> more ops to the ISA, adding a load balancer unit to the simulator that
> creates threads (allocate stack size, set per-thread stack pointers, passing
> thread contexts). Would you please give some hints on how to implement these
> in M5?
>
> Thanks!
>
> Jiayuan
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf Of Steve Reinhardt
> Sent: Tuesday, May 15, 2007 2:39 PM
> To: M5 users mailing list
> Subject: Re: [m5-users] question on test code compilation
>
> M5 can run pthreads binaries in full-system mode, which means you're
> restricted to Alpha for now.
>
> There are directions on building a gcc-based cross compiler here:
>
> http://www.m5sim.org/wiki/index.php/Using_linux-dist_to_Create_Disk_Images_a
> nd_Kernels_for_M5
>
> Note that you just need to follow the first section (on building the
> cross compiler); the other parts on building a new kernel are
> unnecessary if you're just compiling new applications.
>
> Steve
>
> Jiayuan Meng wrote:
> > Hi all,
> >
> > I am a starter on M5, and I'm interested in simulating a multithreaded
> > program on a CMP architecture. My question is, can M5 run programs
> > written with pthreads? what crosscompiler do you recommend to compile C
> > or C++ code on a x86 host to SPARC/ALPHA binaries that can be run on M5?
> >
> > I tried to compile helloworld code on UltraSparc IIIi/SunOS using gcc
> > version 3.3.6. However, the sparc binary generates faults when the code
> > is run on M5. Would you please give me some hints?
> >
> > Thanks!
> >
> > Jiayuan
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > m5-users mailing list
> > [email protected]
> > http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
> _______________________________________________
> m5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
>
> _______________________________________________
> m5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
>




_______________________________________________
m5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users

Reply via email to