stacktrace.hh revision 10417
111320Ssteve.reinhardt@amd.com/* 210328Smitch.hayenga@arm.com * Copyright (c) 2005 The Regents of The University of Michigan 39444SAndreas.Sandberg@ARM.com * All rights reserved. 49444SAndreas.Sandberg@ARM.com * 59444SAndreas.Sandberg@ARM.com * Redistribution and use in source and binary forms, with or without 69444SAndreas.Sandberg@ARM.com * modification, are permitted provided that the following conditions are 79444SAndreas.Sandberg@ARM.com * met: redistributions of source code must retain the above copyright 89444SAndreas.Sandberg@ARM.com * notice, this list of conditions and the following disclaimer; 99444SAndreas.Sandberg@ARM.com * redistributions in binary form must reproduce the above copyright 109444SAndreas.Sandberg@ARM.com * notice, this list of conditions and the following disclaimer in the 119444SAndreas.Sandberg@ARM.com * documentation and/or other materials provided with the distribution; 129444SAndreas.Sandberg@ARM.com * neither the name of the copyright holders nor the names of its 139444SAndreas.Sandberg@ARM.com * contributors may be used to endorse or promote products derived from 142329SN/A * this software without specific prior written permission. 151689SN/A * 161689SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 171689SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 181689SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 191689SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 201689SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 211689SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 221689SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 231689SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 241689SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 251689SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 261689SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 271689SN/A * 281689SN/A * Authors: Nathan Binkert 291689SN/A */ 301689SN/A 311689SN/A#ifndef __ARCH_SPARC_STACKTRACE_HH__ 321689SN/A#define __ARCH_SPARC_STACKTRACE_HH__ 331689SN/A 341689SN/A#include <vector> 351689SN/A 361689SN/A#include "base/types.hh" 371689SN/A#include "cpu/static_inst.hh" 381689SN/A#include "debug/Stack.hh" 392665Ssaidi@eecs.umich.edu 402665Ssaidi@eecs.umich.educlass ThreadContext; 411689SN/Anamespace SparcISA 421689SN/A{ 439944Smatt.horsnell@ARM.com 449944Smatt.horsnell@ARM.comclass StackTrace 459944Smatt.horsnell@ARM.com{ 468230Snate@binkert.org private: 478230Snate@binkert.org std::vector<Addr> stack; 486658Snate@binkert.org 491717SN/A public: 508230Snate@binkert.org bool 518232Snate@binkert.org trace(ThreadContext *tc, const StaticInstPtr &inst) 528232Snate@binkert.org { 539527SMatt.Horsnell@arm.com panic("StackTrace::trace not implemented for SPARC.\n"); 546221Snate@binkert.org return false; 558793Sgblack@eecs.umich.edu } 561060SN/A 578737Skoansin.tan@gmail.com const std::vector<Addr> &getstack() const { return stack; } 588737Skoansin.tan@gmail.com 598737Skoansin.tan@gmail.com public: 605529Snate@binkert.org void dprintf() {} 611060SN/A}; 625529Snate@binkert.org 634329Sktlim@umich.edu} 644329Sktlim@umich.edu 652292SN/A#endif // __ARCH_SPARC_STACKTRACE_HH__ 662292SN/A