16365SN/A# Copyright (c) 2009 The Regents of The University of Michigan 26365SN/A# All rights reserved. 36365SN/A# 46365SN/A# Redistribution and use in source and binary forms, with or without 56365SN/A# modification, are permitted provided that the following conditions are 66365SN/A# met: redistributions of source code must retain the above copyright 76365SN/A# notice, this list of conditions and the following disclaimer; 86365SN/A# redistributions in binary form must reproduce the above copyright 96365SN/A# notice, this list of conditions and the following disclaimer in the 106365SN/A# documentation and/or other materials provided with the distribution; 116365SN/A# neither the name of the copyright holders nor the names of its 126365SN/A# contributors may be used to endorse or promote products derived from 136365SN/A# this software without specific prior written permission. 146365SN/A# 156365SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 166365SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 176365SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 186365SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 196365SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 206365SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 216365SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 226365SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 236365SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 246365SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 256365SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 266365SN/A# 276365SN/A# Authors: Gabe Black 286365SN/A 296365SN/Afrom m5.SimObject import SimObject 306365SN/Afrom m5.params import * 3113665Sandreas.sandberg@arm.comfrom m5.objects.CPUTracers import NativeTrace 326365SN/A 336397Sgblack@eecs.umich.educlass ArmNativeTrace(NativeTrace): 346397Sgblack@eecs.umich.edu type = 'ArmNativeTrace' 356397Sgblack@eecs.umich.edu cxx_class = 'Trace::ArmNativeTrace' 369338SAndreas.Sandberg@arm.com cxx_header = "arch/arm/nativetrace.hh" 376419Sgblack@eecs.umich.edu stop_on_pc_error = Param.Bool(True, 386419Sgblack@eecs.umich.edu "Stop M5 if it and statetrace's pcs are different") 39