exetrace.cc (10383:b31580e27d1f) exetrace.cc (10417:710ee116eb68)
1/*
2 * Copyright (c) 2001-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;

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

51
52void
53ExeTracerRecord::dumpTicks(ostream &outs)
54{
55 ccprintf(outs, "%7d: ", when);
56}
57
58void
1/*
2 * Copyright (c) 2001-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;

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

51
52void
53ExeTracerRecord::dumpTicks(ostream &outs)
54{
55 ccprintf(outs, "%7d: ", when);
56}
57
58void
59Trace::ExeTracerRecord::traceInst(StaticInstPtr inst, bool ran)
59Trace::ExeTracerRecord::traceInst(const StaticInstPtr &inst, bool ran)
60{
61 ostream &outs = Trace::output();
62
63 if (!Debug::ExecUser || !Debug::ExecKernel) {
64 bool in_user_mode = TheISA::inUserMode(thread);
65 if (in_user_mode && !Debug::ExecUser) return;
66 if (!in_user_mode && !Debug::ExecKernel) return;
67 }

--- 114 unchanged lines hidden ---
60{
61 ostream &outs = Trace::output();
62
63 if (!Debug::ExecUser || !Debug::ExecKernel) {
64 bool in_user_mode = TheISA::inUserMode(thread);
65 if (in_user_mode && !Debug::ExecUser) return;
66 if (!in_user_mode && !Debug::ExecKernel) return;
67 }

--- 114 unchanged lines hidden ---