system_events.cc (7720:65d338a8dba4) system_events.cc (8232:b28d06a175be)
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;

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

29 * Nathan Binkert
30 */
31
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"
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;

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

29 * Nathan Binkert
30 */
31
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"
37#include "kern/system_events.hh"
38
39using namespace TheISA;
40
41void
42SkipFuncEvent::process(ThreadContext *tc)
43{
44 TheISA::PCState oldPC M5_VAR_USED = tc->pcState();
45
46 // Call ISA specific code to do the skipping
47 TheISA::skipFunction(tc);
48 DPRINTF(PCEvent, "skipping %s: pc = %s, newpc = %s\n", description,
49 oldPC, tc->pcState());
50}
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}