summaryrefslogtreecommitdiff
path: root/src/python/m5/util/__init__.py
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2011-04-15 10:42:32 -0700
committerNathan Binkert <nate@binkert.org>2011-04-15 10:42:32 -0700
commit07815c3379d26a5d132696b41a5f1efc618cb0e6 (patch)
tree78364f5865f9c47b27649874ebdbf77d46a16f9a /src/python/m5/util/__init__.py
parent12446e9659b40cd62cd53a2d622fecc3450d8b09 (diff)
downloadgem5-07815c3379d26a5d132696b41a5f1efc618cb0e6.tar.xz
region: add a utility class for keeping track of regions of some range
This is basically like the range_map stuff in src/base (range already exists in Python). This code is like a set of ranges. I'm using it to keep track of changed lines in source code, but it could be use to keep track of memory ranges and holes in memory regions. It could also be used in memory allocation type stuff. (Though it's not at all optimized.)
Diffstat (limited to 'src/python/m5/util/__init__.py')
-rw-r--r--src/python/m5/util/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/python/m5/util/__init__.py b/src/python/m5/util/__init__.py
index 9154e73c4..f8db6e9a7 100644
--- a/src/python/m5/util/__init__.py
+++ b/src/python/m5/util/__init__.py
@@ -40,6 +40,7 @@ from multidict import multidict
from orderdict import orderdict
from smartdict import SmartDict
from sorteddict import SortedDict
+from region import neg_inf, pos_inf, Region, Regions
# define this here so we can use it right away if necessary
def errorURL(prefix, s):