diff options
author | Nathan Binkert <binkertn@umich.edu> | 2005-04-22 13:12:03 -0400 |
---|---|---|
committer | Nathan Binkert <binkertn@umich.edu> | 2005-04-22 13:12:03 -0400 |
commit | 5a7ee2b4952f8e4fde66a5bb2a50f8afba91b477 (patch) | |
tree | 80f020f814829256eb8e0f9991a371778d83bd4b /sim/serialize.cc | |
parent | 535cfaa01e0234e224e588e753419d8777e22d0b (diff) | |
download | gem5-5a7ee2b4952f8e4fde66a5bb2a50f8afba91b477.tar.xz |
Make code more portable and port to cygwin
arch/alpha/alpha_tru64_process.cc:
getdirent isn't implemented by cygwin. panic if this function is
executed. (It shouldn't be too much to emulate it using opendir,
readdir, etc.)
arch/alpha/pseudo_inst.cc:
Use lseek once and read instead pread.
base/intmath.hh:
we want int, long, and long long variations of FloorLog2 instead
of int32_t, int64_t. Otherwise, we leave one out.
base/socket.cc:
Fix define that seems to be for apple
sim/serialize.cc:
don't use the intXX_t stuff, instead, use the real types
so we're sure that we cover all of them.
--HG--
extra : convert_revision : 9fccaff583100b06bbaafd95a162c4e19beed59e
Diffstat (limited to 'sim/serialize.cc')
-rw-r--r-- | sim/serialize.cc | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/sim/serialize.cc b/sim/serialize.cc index 52008c394..ca0bc2bb0 100644 --- a/sim/serialize.cc +++ b/sim/serialize.cc @@ -172,15 +172,16 @@ template void \ arrayParamIn(Checkpoint *cp, const std::string §ion, \ const std::string &name, type *param, int size); - -INSTANTIATE_PARAM_TEMPLATES(int8_t) -INSTANTIATE_PARAM_TEMPLATES(uint8_t) -INSTANTIATE_PARAM_TEMPLATES(int16_t) -INSTANTIATE_PARAM_TEMPLATES(uint16_t) -INSTANTIATE_PARAM_TEMPLATES(int32_t) -INSTANTIATE_PARAM_TEMPLATES(uint32_t) -INSTANTIATE_PARAM_TEMPLATES(int64_t) -INSTANTIATE_PARAM_TEMPLATES(uint64_t) +INSTANTIATE_PARAM_TEMPLATES(signed char) +INSTANTIATE_PARAM_TEMPLATES(unsigned char) +INSTANTIATE_PARAM_TEMPLATES(signed short) +INSTANTIATE_PARAM_TEMPLATES(unsigned short) +INSTANTIATE_PARAM_TEMPLATES(signed int) +INSTANTIATE_PARAM_TEMPLATES(unsigned int) +INSTANTIATE_PARAM_TEMPLATES(signed long) +INSTANTIATE_PARAM_TEMPLATES(unsigned long) +INSTANTIATE_PARAM_TEMPLATES(signed long long) +INSTANTIATE_PARAM_TEMPLATES(unsigned long long) INSTANTIATE_PARAM_TEMPLATES(bool) INSTANTIATE_PARAM_TEMPLATES(string) |