params.py (7677:c6e283904437) | params.py (7689:9d75590d7abe) |
---|---|
1# Copyright (c) 2010 The Hewlett-Packard Development Company 2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are 6# met: redistributions of source code must retain the above copyright 7# notice, this list of conditions and the following disclaimer; 8# redistributions in binary form must reproduce the above copyright --- 18 unchanged lines hidden (view full) --- 27# Authors: Nathan Binkert 28 29try: 30 modules = __loader__.modules 31except NameError: 32 modules = { } 33 34for module in modules.iterkeys(): | 1# Copyright (c) 2010 The Hewlett-Packard Development Company 2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are 6# met: redistributions of source code must retain the above copyright 7# notice, this list of conditions and the following disclaimer; 8# redistributions in binary form must reproduce the above copyright --- 18 unchanged lines hidden (view full) --- 27# Authors: Nathan Binkert 28 29try: 30 modules = __loader__.modules 31except NameError: 32 modules = { } 33 34for module in modules.iterkeys(): |
35 if module.startswith('m5.internal.param_'): | 35 if module.startswith('m5.internal.param_') or \ 36 module.startswith('m5.internal.enum_'): |
36 exec "from %s import *" % module | 37 exec "from %s import *" % module |