diff options
author | Nathan Binkert <nate@binkert.org> | 2011-04-15 10:42:32 -0700 |
---|---|---|
committer | Nathan Binkert <nate@binkert.org> | 2011-04-15 10:42:32 -0700 |
commit | 07815c3379d26a5d132696b41a5f1efc618cb0e6 (patch) | |
tree | 78364f5865f9c47b27649874ebdbf77d46a16f9a /src/python/m5/util/__init__.py | |
parent | 12446e9659b40cd62cd53a2d622fecc3450d8b09 (diff) | |
download | gem5-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__.py | 1 |
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): |