params.py revision 13671
13116SN/A# Copyright (c) 2017 ARM Limited 23116SN/A# All rights reserved. 33116SN/A# 43116SN/A# The license below extends only to copyright in the software and shall 53116SN/A# not be construed as granting a license to any other intellectual 63116SN/A# property including but not limited to intellectual property relating 73116SN/A# to a hardware implementation of the functionality of the software 83116SN/A# licensed hereunder. You may use the software subject to the license 93116SN/A# terms below provided that you ensure that this notice is replicated 103116SN/A# unmodified and in its entirety in all distributions of the software, 113116SN/A# modified or unmodified, in source code or in binary form. 123116SN/A# 133116SN/A# Copyright (c) 2010 The Hewlett-Packard Development Company 143116SN/A# All rights reserved. 153116SN/A# 163116SN/A# Redistribution and use in source and binary forms, with or without 173116SN/A# modification, are permitted provided that the following conditions are 183116SN/A# met: redistributions of source code must retain the above copyright 193116SN/A# notice, this list of conditions and the following disclaimer; 203116SN/A# redistributions in binary form must reproduce the above copyright 213116SN/A# notice, this list of conditions and the following disclaimer in the 223116SN/A# documentation and/or other materials provided with the distribution; 233116SN/A# neither the name of the copyright holders nor the names of its 243116SN/A# contributors may be used to endorse or promote products derived from 253116SN/A# this software without specific prior written permission. 263116SN/A# 273116SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 283116SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 293116SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 303116SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 313116SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 323116SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 333116SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 344218SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 353116SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 363116SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 373116SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 384263SN/A# 394263SN/A# Authors: Nathan Binkert 404263SN/A 414263SN/Aimport inspect 424263SN/Aimport _m5 434263SN/A 444263SN/Afor name, module in inspect.getmembers(_m5): 454263SN/A if name.startswith('param_') or name.startswith('enum_'): 464263SN/A exec("from _m5.%s import *" % name) 474263SN/A