system_events.cc revision 7693
111661Stushar@ece.gatech.edu/*
211661Stushar@ece.gatech.edu * Copyright (c) 2004-2005 The Regents of The University of Michigan
311661Stushar@ece.gatech.edu * All rights reserved.
411661Stushar@ece.gatech.edu *
511661Stushar@ece.gatech.edu * Redistribution and use in source and binary forms, with or without
611661Stushar@ece.gatech.edu * modification, are permitted provided that the following conditions are
711661Stushar@ece.gatech.edu * met: redistributions of source code must retain the above copyright
811661Stushar@ece.gatech.edu * notice, this list of conditions and the following disclaimer;
911661Stushar@ece.gatech.edu * redistributions in binary form must reproduce the above copyright
1011661Stushar@ece.gatech.edu * notice, this list of conditions and the following disclaimer in the
1111661Stushar@ece.gatech.edu * documentation and/or other materials provided with the distribution;
1211661Stushar@ece.gatech.edu * neither the name of the copyright holders nor the names of its
1311661Stushar@ece.gatech.edu * contributors may be used to endorse or promote products derived from
1411661Stushar@ece.gatech.edu * this software without specific prior written permission.
1511661Stushar@ece.gatech.edu *
1611661Stushar@ece.gatech.edu * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1711661Stushar@ece.gatech.edu * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1811661Stushar@ece.gatech.edu * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
1911661Stushar@ece.gatech.edu * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
2011661Stushar@ece.gatech.edu * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
2111661Stushar@ece.gatech.edu * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
2211661Stushar@ece.gatech.edu * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2311661Stushar@ece.gatech.edu * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2411661Stushar@ece.gatech.edu * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2511661Stushar@ece.gatech.edu * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2611661Stushar@ece.gatech.edu * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2711661Stushar@ece.gatech.edu *
2811661Stushar@ece.gatech.edu * Authors: Lisa Hsu
2911661Stushar@ece.gatech.edu *          Nathan Binkert
3011661Stushar@ece.gatech.edu */
3111661Stushar@ece.gatech.edu
3211661Stushar@ece.gatech.edu#include "arch/isa_traits.hh"
3311661Stushar@ece.gatech.edu#include "arch/utility.hh"
3411661Stushar@ece.gatech.edu#include "base/trace.hh"
3511661Stushar@ece.gatech.edu#include "config/the_isa.hh"
3611661Stushar@ece.gatech.edu#include "cpu/thread_context.hh"
3711661Stushar@ece.gatech.edu#include "kern/system_events.hh"
3811661Stushar@ece.gatech.edu
3911661Stushar@ece.gatech.eduusing namespace TheISA;
4011661Stushar@ece.gatech.edu
4111661Stushar@ece.gatech.eduvoid
4211661Stushar@ece.gatech.eduSkipFuncEvent::process(ThreadContext *tc)
4311661Stushar@ece.gatech.edu{
4411661Stushar@ece.gatech.edu    DPRINTF(PCEvent, "skipping %s: pc=%x, newpc=%x\n", description,
4511661Stushar@ece.gatech.edu            tc->readPC(), tc->readIntReg(ReturnAddressReg));
4611661Stushar@ece.gatech.edu
4711661Stushar@ece.gatech.edu    // Call ISA specific code to do the skipping
4811661Stushar@ece.gatech.edu    TheISA::skipFunction(tc);
4911661Stushar@ece.gatech.edu}
5011661Stushar@ece.gatech.edu