params.py revision 11802:be62996c95d1
112391Sjason@lowepower.com# Copyright (c) 2010 The Hewlett-Packard Development Company
212391Sjason@lowepower.com# All rights reserved.
312391Sjason@lowepower.com#
412391Sjason@lowepower.com# Redistribution and use in source and binary forms, with or without
512391Sjason@lowepower.com# modification, are permitted provided that the following conditions are
612391Sjason@lowepower.com# met: redistributions of source code must retain the above copyright
712391Sjason@lowepower.com# notice, this list of conditions and the following disclaimer;
812391Sjason@lowepower.com# redistributions in binary form must reproduce the above copyright
912391Sjason@lowepower.com# notice, this list of conditions and the following disclaimer in the
1012391Sjason@lowepower.com# documentation and/or other materials provided with the distribution;
1112391Sjason@lowepower.com# neither the name of the copyright holders nor the names of its
1212391Sjason@lowepower.com# contributors may be used to endorse or promote products derived from
1312391Sjason@lowepower.com# this software without specific prior written permission.
1412391Sjason@lowepower.com#
1512391Sjason@lowepower.com# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1612391Sjason@lowepower.com# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1712391Sjason@lowepower.com# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
1812391Sjason@lowepower.com# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
1912391Sjason@lowepower.com# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
2012391Sjason@lowepower.com# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
2112391Sjason@lowepower.com# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2212391Sjason@lowepower.com# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2312391Sjason@lowepower.com# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2412391Sjason@lowepower.com# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2512391Sjason@lowepower.com# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2612391Sjason@lowepower.com#
2712391Sjason@lowepower.com# Authors: Nathan Binkert
2812391Sjason@lowepower.com
2912391Sjason@lowepower.comtry:
3012391Sjason@lowepower.com    modules = __loader__.modules
3112391Sjason@lowepower.comexcept NameError:
3212391Sjason@lowepower.com    modules = { }
3312391Sjason@lowepower.com
3412391Sjason@lowepower.comfor module in modules.iterkeys():
3512391Sjason@lowepower.com    if module.startswith('_m5.param_') or \
3612391Sjason@lowepower.com           module.startswith('_m5.enum_'):
3712391Sjason@lowepower.com        exec "from %s import *" % module
3812391Sjason@lowepower.com