fixes so that M5 will compile under solaris
authorAli Saidi <saidi@eecs.umich.edu>
Sun, 5 Nov 2006 02:41:01 +0000 (21:41 -0500)
committerAli Saidi <saidi@eecs.umich.edu>
Sun, 5 Nov 2006 02:41:01 +0000 (21:41 -0500)
commit21cf4a46b9e9ce52266aac873aa107cad82cc847
tree9487d26d654e724380a19d39b2e75aa0343092f0
parent683d8f0831b476a906dc2720265a2334ba0117e3
fixes so that M5 will compile under solaris

SConstruct:
    Add check to see if we need to include libsocket
src/arch/sparc/floatregfile.cc:
src/arch/sparc/intregfile.cc:
    use memset rather than bzero and include the appropriate headerfile
src/base/pollevent.cc:
    If we're compling under solaris we need sys/file.h
src/base/random.cc:
src/base/random.hh:
    solaris doesn't have random(), so use rint with the correct rounding mode
    if we're compiling on solaris
src/base/stats/flags.hh:
    u_int32_t??
src/base/time.hh:
    grab the timersub() define from freebsd since it doesn't exist in solaris
src/cpu/inst_seq.hh:
    we don't need to include stdint here
src/sim/byteswap.hh:
    the method to detect endianness on Solaris is a little more complex...

--HG--
extra : convert_revision : 6b7db0e900e7bccfc250d65c125065f27280dda1
SConstruct
src/arch/sparc/floatregfile.cc
src/arch/sparc/intregfile.cc
src/base/pollevent.cc
src/base/random.cc
src/base/random.hh
src/base/stats/flags.hh
src/base/time.hh
src/cpu/inst_seq.hh
src/sim/byteswap.hh