diff options
author | Ali Saidi <saidi@eecs.umich.edu> | 2006-11-04 21:41:01 -0500 |
---|---|---|
committer | Ali Saidi <saidi@eecs.umich.edu> | 2006-11-04 21:41:01 -0500 |
commit | 21cf4a46b9e9ce52266aac873aa107cad82cc847 (patch) | |
tree | 9487d26d654e724380a19d39b2e75aa0343092f0 /src/base/random.hh | |
parent | 683d8f0831b476a906dc2720265a2334ba0117e3 (diff) | |
download | gem5-21cf4a46b9e9ce52266aac873aa107cad82cc847.tar.xz |
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
Diffstat (limited to 'src/base/random.hh')
-rw-r--r-- | src/base/random.hh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/base/random.hh b/src/base/random.hh index b5eb39f94..40d62da7f 100644 --- a/src/base/random.hh +++ b/src/base/random.hh @@ -36,6 +36,7 @@ long getLong(); double getDouble(); +double m5random(double r); uint64_t getUniformPos(uint64_t min, uint64_t max); int64_t getUniform(int64_t min, int64_t max); |