summaryrefslogtreecommitdiff
path: root/src/python/m5
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2009-05-17 14:34:50 -0700
committerNathan Binkert <nate@binkert.org>2009-05-17 14:34:50 -0700
commiteef3a2e142443d94b75de333ff3ccb69644a9831 (patch)
tree14224dd738c732b269f8c94c95659d5b759570bf /src/python/m5
parentcbf237897f8de0ae411b572aea896c5ce4ea26fb (diff)
downloadgem5-eef3a2e142443d94b75de333ff3ccb69644a9831.tar.xz
types: Move stuff for global types into src/base/types.hh
--HG-- rename : src/sim/host.hh => src/base/types.hh
Diffstat (limited to 'src/python/m5')
-rw-r--r--src/python/m5/params.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/python/m5/params.py b/src/python/m5/params.py
index 18eeac0d1..edd78fa28 100644
--- a/src/python/m5/params.py
+++ b/src/python/m5/params.py
@@ -317,12 +317,12 @@ class CheckedIntType(MetaParamValue):
if not cls.cxx_predecls:
# most derived types require this, so we just do it here once
- cls.cxx_predecls = ['#include "sim/host.hh"']
+ cls.cxx_predecls = ['#include "base/types.hh"']
if not cls.swig_predecls:
# most derived types require this, so we just do it here once
cls.swig_predecls = ['%import "stdint.i"\n' +
- '%import "sim/host.hh"']
+ '%import "base/types.hh"']
if not (hasattr(cls, 'min') and hasattr(cls, 'max')):
if not (hasattr(cls, 'size') and hasattr(cls, 'unsigned')):
@@ -766,9 +766,9 @@ frequency_tolerance = 0.001 # 0.1%
class TickParamValue(NumericParamValue):
cxx_type = 'Tick'
- cxx_predecls = ['#include "sim/host.hh"']
+ cxx_predecls = ['#include "base/types.hh"']
swig_predecls = ['%import "stdint.i"\n' +
- '%import "sim/host.hh"']
+ '%import "base/types.hh"']
def getValue(self):
return long(self.value)
@@ -844,9 +844,9 @@ class Frequency(TickParamValue):
# An explicit conversion to a Latency or Frequency must be made first.
class Clock(ParamValue):
cxx_type = 'Tick'
- cxx_predecls = ['#include "sim/host.hh"']
+ cxx_predecls = ['#include "base/types.hh"']
swig_predecls = ['%import "stdint.i"\n' +
- '%import "sim/host.hh"']
+ '%import "base/types.hh"']
def __init__(self, value):
if isinstance(value, (Latency, Clock)):
self.ticks = value.ticks