Hi Nilay,

Yes, I had to make two changes to make it compile.
1. Solaris does not recognize std::isnan() function. So I had to put my
own implementation. This was a solution posted online >
https://gist.github.com/870503

-namespace std
-{
- int isnan  (int         x) { return x != x; }
-}

2. for some reason definitions for BYTE_ORDER,LITTLE_ENDIAN were not found
by compiler. As I knew my host machine is BigEndian, I commented out the
below part in src/sim/byteswap.hh line 159 - 164

-//#elif defined(_LITTLE_ENDIAN) || BYTE_ORDER == LITTLE_ENDIAN
-//const ByteOrder HostByteOrder = LittleEndianByteOrder;
-//template <typename T> inline T htole(T value) {return value;}
-//template <typename T> inline T letoh(T value) {return value;}
-//template <typename T> inline T htobe(T value) {return
swap_byte(value);}
-//template <typename T> inline T betoh(T value) {return
swap_byte(value);}

Is there something wrong with my changes? I would be grateful for any
pointers.

Thanks,
Saket


> On Thu, 13 Dec 2012, [email protected] wrote:
>> Hi,
>> Has anyone been able to run gem5 on Solaris? I am using Solaris 2.11 with
>> 64 bit Sparc Architecture. Gem5 website also does not explicitly
mention
>> that it runs on Solaris.
>> I was able to compile X86/gem5.debug on Solaris. But i get a Bus
Error(Core Dumped) when I run (the "hello world" example). So I was
curious to know if anyone has managed to run gem5 on Solaris and if yes
for what configuration?
> Two things --
> 1. It sounds as if you had to make changes inorder for gem5 to compile
on
> a Solaris machine. If you did, then you might want to go through those
changes again to make sure you did not do any thing incorrect.
> 2. Since you have a debug binary, you should be able to use gdb's
equivalent on Solaris to figure out why the program failed.
> --
> Nilay




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

Reply via email to