summaryrefslogtreecommitdiff
path: root/base/bitfield.hh
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2004-10-23 12:31:24 -0400
committerNathan Binkert <binkertn@umich.edu>2004-10-23 12:31:24 -0400
commit656031b0735e27933d48f30b1c756eb45bc8b516 (patch)
tree3044aadf98ad7898a213fff77367b3b5c7a2ff7a /base/bitfield.hh
parent224acc2abccec14ab3846f1b3308e642ed094456 (diff)
downloadgem5-656031b0735e27933d48f30b1c756eb45bc8b516.tar.xz
make stuff compile on openbsd again
clean up a few other things while we're here. base/bitfield.hh: base/compression/null_compression.hh: dont #include <inttypes.hh> use "sim/host.hh" fix #include guard base/stats/types.hh: dont #include <inttypes.hh> use "sim/host.hh" kern/linux/aligned.hh: dont #include <stdint.hh> use "sim/host.hh" fix #include guard kern/linux/hwrpb.hh: fix #include guard --HG-- extra : convert_revision : 288c687a59a1e770bbb834879173e1a2ea371bce
Diffstat (limited to 'base/bitfield.hh')
-rw-r--r--base/bitfield.hh8
1 files changed, 4 insertions, 4 deletions
diff --git a/base/bitfield.hh b/base/bitfield.hh
index ee5ea72cf..bdc3fb13e 100644
--- a/base/bitfield.hh
+++ b/base/bitfield.hh
@@ -26,10 +26,10 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef __BITFIELD_HH
-#define __BITFIELD_HH
+#ifndef __BASE_BITFIELD_HH__
+#define __BASE_BITFIELD_HH__
-#include <inttypes.h>
+#include "sim/host.hh"
/**
* Generate a 64-bit mask of 'nbits' 1s, right justified.
@@ -66,4 +66,4 @@ sext(uint64_t val)
return sign_bit ? (val | ~mask(N)) : val;
}
-#endif
+#endif // __BASE_BITFIELD_HH__