system_events.cc (8232:b28d06a175be) system_events.cc (11793:ef606668d247)
1/*
2 * Copyright (c) 2004-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 15 unchanged lines hidden (view full) ---

24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
28 * Authors: Lisa Hsu
29 * Nathan Binkert
30 */
31
1/*
2 * Copyright (c) 2004-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 15 unchanged lines hidden (view full) ---

24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
28 * Authors: Lisa Hsu
29 * Nathan Binkert
30 */
31
32#include "kern/system_events.hh"
33
32#include "arch/isa_traits.hh"
33#include "arch/utility.hh"
34#include "base/trace.hh"
35#include "config/the_isa.hh"
36#include "cpu/thread_context.hh"
37#include "debug/PCEvent.hh"
34#include "arch/isa_traits.hh"
35#include "arch/utility.hh"
36#include "base/trace.hh"
37#include "config/the_isa.hh"
38#include "cpu/thread_context.hh"
39#include "debug/PCEvent.hh"
38#include "kern/system_events.hh"
39
40using namespace TheISA;
41
42void
43SkipFuncEvent::process(ThreadContext *tc)
44{
45 TheISA::PCState oldPC M5_VAR_USED = tc->pcState();
46
47 // Call ISA specific code to do the skipping
48 TheISA::skipFunction(tc);
49 DPRINTF(PCEvent, "skipping %s: pc = %s, newpc = %s\n", description,
50 oldPC, tc->pcState());
51}
40
41using namespace TheISA;
42
43void
44SkipFuncEvent::process(ThreadContext *tc)
45{
46 TheISA::PCState oldPC M5_VAR_USED = tc->pcState();
47
48 // Call ISA specific code to do the skipping
49 TheISA::skipFunction(tc);
50 DPRINTF(PCEvent, "skipping %s: pc = %s, newpc = %s\n", description,
51 oldPC, tc->pcState());
52}