diff options
author | Nathan Binkert <binkertn@umich.edu> | 2004-07-02 16:40:23 -0400 |
---|---|---|
committer | Nathan Binkert <binkertn@umich.edu> | 2004-07-02 16:40:23 -0400 |
commit | e2c62a13dd5d81a1b5f6443b994b434c92a81d87 (patch) | |
tree | abbb1095594c49917b4224c133e0eaf3516e0717 /sim/host.hh | |
parent | 0e575e9f262551374db2fbbe482fc5507f3211ab (diff) | |
download | gem5-e2c62a13dd5d81a1b5f6443b994b434c92a81d87.tar.xz |
Fix byteswap on LP64 (amd64)
kern/linux/linux_system.cc:
Formatting
sim/host.hh:
When we say ULL and UL we really just want a 64-bit value, not
necessarily a long long, so cast the integer to (u)int64_t
this fixes a problem with byte swapping.
--HG--
extra : convert_revision : ad25ace5a7b92a7c928f2d52e531193c91f3f8c8
Diffstat (limited to 'sim/host.hh')
-rw-r--r-- | sim/host.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/host.hh b/sim/host.hh index 489c4e042..9114cc4b6 100644 --- a/sim/host.hh +++ b/sim/host.hh @@ -38,9 +38,9 @@ #include <inttypes.h> /** uint64_t constant */ -#define ULL(N) N##ULL +#define ULL(N) ((uint64_t)N##ULL) /** int64_t constant */ -#define LL(N) N##LL +#define LL(N) (((int64_t)N##LL) /** Statistics counter type. Not much excuse for not using a 64-bit * integer here, but if you're desperate and only run short |