O3Checker.py revision 4486
11917SN/A# Copyright (c) 2007 The Regents of The University of Michigan 21917SN/A# All rights reserved. 31917SN/A# 41917SN/A# Redistribution and use in source and binary forms, with or without 51917SN/A# modification, are permitted provided that the following conditions are 61917SN/A# met: redistributions of source code must retain the above copyright 71917SN/A# notice, this list of conditions and the following disclaimer; 81917SN/A# redistributions in binary form must reproduce the above copyright 91917SN/A# notice, this list of conditions and the following disclaimer in the 101917SN/A# documentation and/or other materials provided with the distribution; 111917SN/A# neither the name of the copyright holders nor the names of its 121917SN/A# contributors may be used to endorse or promote products derived from 131917SN/A# this software without specific prior written permission. 141917SN/A# 151917SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 161917SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 171917SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 181917SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 191917SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 201917SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 211917SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 221917SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 231917SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 241917SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 251917SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 261917SN/A# 272665Ssaidi@eecs.umich.edu# Authors: Nathan Binkert 282665Ssaidi@eecs.umich.edu 291917SN/Afrom m5.params import * 301917SN/Afrom m5 import build_env 3111793Sbrandon.potter@amd.comfrom BaseCPU import BaseCPU 3211793Sbrandon.potter@amd.com 331917SN/Aclass O3Checker(BaseCPU): 341917SN/A type = 'O3Checker' 351917SN/A exitOnError = Param.Bool(False, "Exit on an error") 361917SN/A updateOnError = Param.Bool(False, 371917SN/A "Update the checker with the main CPU's state on an error") 381917SN/A warnOnlyOnLoadError = Param.Bool(False, 391917SN/A "If a load result is incorrect, only print a warning and do not exit") 402680Sktlim@umich.edu function_trace = Param.Bool(False, "Enable function trace") 418706Sandreas.hansson@arm.com function_trace_start = Param.Tick(0, "Cycle to start function trace") 422235SN/A if build_env['FULL_SYSTEM']: 431917SN/A profile = Param.Latency('0ns', "trace the kernel stack") 441917SN/A