commit_impl.hh (3521:0b0b3551def0) commit_impl.hh (3577:605c370622b1)
1/*
2 * Copyright (c) 2004-2006 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;

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

30 */
31
32#include "config/full_system.hh"
33#include "config/use_checker.hh"
34
35#include <algorithm>
36#include <string>
37
1/*
2 * Copyright (c) 2004-2006 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;

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

30 */
31
32#include "config/full_system.hh"
33#include "config/use_checker.hh"
34
35#include <algorithm>
36#include <string>
37
38#include "arch/utility.hh"
38#include "base/loader/symtab.hh"
39#include "base/timebuf.hh"
40#include "cpu/exetrace.hh"
41#include "cpu/o3/commit.hh"
42#include "cpu/o3/thread_state.hh"
43
44#if USE_CHECKER
45#include "cpu/checker/cpu.hh"

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

1079// warn("%lli fault (%d) handled @ PC %08p", curTick, inst_fault->name(), head_inst->readPC());
1080 return false;
1081 }
1082
1083 updateComInstStats(head_inst);
1084
1085#if FULL_SYSTEM
1086 if (thread[tid]->profile) {
39#include "base/loader/symtab.hh"
40#include "base/timebuf.hh"
41#include "cpu/exetrace.hh"
42#include "cpu/o3/commit.hh"
43#include "cpu/o3/thread_state.hh"
44
45#if USE_CHECKER
46#include "cpu/checker/cpu.hh"

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

1080// warn("%lli fault (%d) handled @ PC %08p", curTick, inst_fault->name(), head_inst->readPC());
1081 return false;
1082 }
1083
1084 updateComInstStats(head_inst);
1085
1086#if FULL_SYSTEM
1087 if (thread[tid]->profile) {
1087// bool usermode =
1088// (cpu->readMiscReg(AlphaISA::IPR_DTB_CM, tid) & 0x18) != 0;
1088// bool usermode = TheISA::inUserMode(thread[tid]->getTC());
1089// thread[tid]->profilePC = usermode ? 1 : head_inst->readPC();
1090 thread[tid]->profilePC = head_inst->readPC();
1091 ProfileNode *node = thread[tid]->profile->consume(thread[tid]->getTC(),
1092 head_inst->staticInst);
1093
1094 if (node)
1095 thread[tid]->profileNode = node;
1096 }

--- 316 unchanged lines hidden ---
1089// thread[tid]->profilePC = usermode ? 1 : head_inst->readPC();
1090 thread[tid]->profilePC = head_inst->readPC();
1091 ProfileNode *node = thread[tid]->profile->consume(thread[tid]->getTC(),
1092 head_inst->staticInst);
1093
1094 if (node)
1095 thread[tid]->profileNode = node;
1096 }

--- 316 unchanged lines hidden ---