diff options
author | Steve Reinhardt <steve.reinhardt@amd.com> | 2010-09-22 08:45:35 -0700 |
---|---|---|
committer | Steve Reinhardt <steve.reinhardt@amd.com> | 2010-09-22 08:45:35 -0700 |
commit | 7bae1f5d430687e5177c960851da689cd60c0b83 (patch) | |
tree | 6a5fef08b9b86e1fad5cdfd2579f4f9c90cb8131 /src/python/m5/internal/params.py | |
parent | 13a15c55a40e86e5f3948a387fb5e50b9a1cdccf (diff) | |
download | gem5-7bae1f5d430687e5177c960851da689cd60c0b83.tar.xz |
python: get rid of internal.enums package.
Move generated enums into internal.params, which gets
imported into object.params, restoring backward
compatibility for scripts that expect to find them there.
Diffstat (limited to 'src/python/m5/internal/params.py')
-rw-r--r-- | src/python/m5/internal/params.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/python/m5/internal/params.py b/src/python/m5/internal/params.py index 454229bc3..20e62b2f7 100644 --- a/src/python/m5/internal/params.py +++ b/src/python/m5/internal/params.py @@ -32,5 +32,6 @@ except NameError: modules = { } for module in modules.iterkeys(): - if module.startswith('m5.internal.param_'): + if module.startswith('m5.internal.param_') or \ + module.startswith('m5.internal.enum_'): exec "from %s import *" % module |