Thanks, I'll take a good look at that thread! I forgot to mention that I'm using a cross-compiled gcc (4.6.0-svn) with the "-mcpu=v8" flag. I'm also using the stable version of m5.
On Fri, Oct 8, 2010 at 3:35 PM, Gabe Black <[email protected]> wrote: > Gustavo Henrique Nihei wrote: > > Hi, > > > > I'm trying to make m5threads work with 32-bit SPARC applications. > > But the simulation is stopping on the following error: > > > > panic: Unimplemented trap to operating system: trap number 0x6d. @ > > cycle 479500 > > > > I modified the spinlock_sparc.h file according to > > ($gcc)/usr/include/asm-sparc/spinlock.h. > > Also changed __ELF_NATIVE_CLASS to 32 in tls_defs.h > > > > Should this trap be implemented or it is a erroneous scenario? > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > m5-users mailing list > > [email protected] > > http://m5sim.org/cgi-bin/mailman/listinfo/m5-users > > There was a thread related to this sort of message on m5-dev back around > July 12th of this year titled Re: [m5-dev] sparc64-linux writev syscall > patch / unhandled trap. You could try to find that in an archive > somewhere and see if it explains things. It looks like your 32 bit > application is trying to do a 64 bit syscall. Likely you need to add > something like -m32 to your command line, or maybe use a cross compiler > specifically for 32 bit. > > Gabe > _______________________________________________ > m5-users mailing list > [email protected] > http://m5sim.org/cgi-bin/mailman/listinfo/m5-users > -- Gustavo Henrique Nihei LAPS - Laboratório de Automação do Projeto de Sistemas NIME - Núcleo Interdepartamental de Microeletrônica Universidade Federal de Santa Catarina Florianópolis - Santa Catarina - Brasil
_______________________________________________ m5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
