111988Sandreas.sandberg@arm.com# Copyright (c) 2017 ARM Limited 211988Sandreas.sandberg@arm.com# All rights reserved. 311988Sandreas.sandberg@arm.com# 411988Sandreas.sandberg@arm.com# The license below extends only to copyright in the software and shall 511988Sandreas.sandberg@arm.com# not be construed as granting a license to any other intellectual 611988Sandreas.sandberg@arm.com# property including but not limited to intellectual property relating 711988Sandreas.sandberg@arm.com# to a hardware implementation of the functionality of the software 811988Sandreas.sandberg@arm.com# licensed hereunder. You may use the software subject to the license 911988Sandreas.sandberg@arm.com# terms below provided that you ensure that this notice is replicated 1011988Sandreas.sandberg@arm.com# unmodified and in its entirety in all distributions of the software, 1111988Sandreas.sandberg@arm.com# modified or unmodified, in source code or in binary form. 1211988Sandreas.sandberg@arm.com# 137675SN/A# Copyright (c) 2010 The Hewlett-Packard Development Company 147675SN/A# All rights reserved. 157675SN/A# 167675SN/A# Redistribution and use in source and binary forms, with or without 177675SN/A# modification, are permitted provided that the following conditions are 187675SN/A# met: redistributions of source code must retain the above copyright 197675SN/A# notice, this list of conditions and the following disclaimer; 207675SN/A# redistributions in binary form must reproduce the above copyright 217675SN/A# notice, this list of conditions and the following disclaimer in the 227675SN/A# documentation and/or other materials provided with the distribution; 237675SN/A# neither the name of the copyright holders nor the names of its 247675SN/A# contributors may be used to endorse or promote products derived from 257675SN/A# this software without specific prior written permission. 267675SN/A# 277675SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 287675SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 297675SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 307675SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 317675SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 327675SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 337675SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 347675SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 357675SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 367675SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 377675SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 387675SN/A# 397675SN/A# Authors: Nathan Binkert 407675SN/A 4113714Sandreas.sandberg@arm.comfrom __future__ import print_function 4213714Sandreas.sandberg@arm.comfrom __future__ import absolute_import 4313714Sandreas.sandberg@arm.com 4411988Sandreas.sandberg@arm.comimport inspect 4511988Sandreas.sandberg@arm.comimport _m5 467675SN/A 4711988Sandreas.sandberg@arm.comfor name, module in inspect.getmembers(_m5): 4811988Sandreas.sandberg@arm.com if name.startswith('param_') or name.startswith('enum_'): 4913671Sandreas.sandberg@arm.com exec("from _m5.%s import *" % name) 50