params.py revision 11988
17119Sgblack@eecs.umich.edu# Copyright (c) 2017 ARM Limited 27119Sgblack@eecs.umich.edu# All rights reserved. 37120Sgblack@eecs.umich.edu# 47120Sgblack@eecs.umich.edu# The license below extends only to copyright in the software and shall 57120Sgblack@eecs.umich.edu# not be construed as granting a license to any other intellectual 67120Sgblack@eecs.umich.edu# property including but not limited to intellectual property relating 77120Sgblack@eecs.umich.edu# to a hardware implementation of the functionality of the software 87120Sgblack@eecs.umich.edu# licensed hereunder. You may use the software subject to the license 97120Sgblack@eecs.umich.edu# terms below provided that you ensure that this notice is replicated 107120Sgblack@eecs.umich.edu# unmodified and in its entirety in all distributions of the software, 117120Sgblack@eecs.umich.edu# modified or unmodified, in source code or in binary form. 127120Sgblack@eecs.umich.edu# 137120Sgblack@eecs.umich.edu# Copyright (c) 2010 The Hewlett-Packard Development Company 147120Sgblack@eecs.umich.edu# All rights reserved. 157119Sgblack@eecs.umich.edu# 167119Sgblack@eecs.umich.edu# Redistribution and use in source and binary forms, with or without 177119Sgblack@eecs.umich.edu# modification, are permitted provided that the following conditions are 187119Sgblack@eecs.umich.edu# met: redistributions of source code must retain the above copyright 197119Sgblack@eecs.umich.edu# notice, this list of conditions and the following disclaimer; 207119Sgblack@eecs.umich.edu# redistributions in binary form must reproduce the above copyright 217119Sgblack@eecs.umich.edu# notice, this list of conditions and the following disclaimer in the 227119Sgblack@eecs.umich.edu# documentation and/or other materials provided with the distribution; 237119Sgblack@eecs.umich.edu# neither the name of the copyright holders nor the names of its 247119Sgblack@eecs.umich.edu# contributors may be used to endorse or promote products derived from 257119Sgblack@eecs.umich.edu# this software without specific prior written permission. 267119Sgblack@eecs.umich.edu# 277119Sgblack@eecs.umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 287119Sgblack@eecs.umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 297119Sgblack@eecs.umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 307119Sgblack@eecs.umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 317119Sgblack@eecs.umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 327119Sgblack@eecs.umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 337119Sgblack@eecs.umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 347119Sgblack@eecs.umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 357119Sgblack@eecs.umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 367119Sgblack@eecs.umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 377119Sgblack@eecs.umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 387119Sgblack@eecs.umich.edu# 397119Sgblack@eecs.umich.edu# Authors: Nathan Binkert 407119Sgblack@eecs.umich.edu 417119Sgblack@eecs.umich.eduimport inspect 427119Sgblack@eecs.umich.eduimport _m5 437119Sgblack@eecs.umich.edu 447205Sgblack@eecs.umich.edufor name, module in inspect.getmembers(_m5): 457205Sgblack@eecs.umich.edu if name.startswith('param_') or name.startswith('enum_'): 467205Sgblack@eecs.umich.edu exec "from _m5.%s import *" % name 477205Sgblack@eecs.umich.edu