mem_dep_unit.hh (8232:b28d06a175be) | mem_dep_unit.hh (8516:a9c0d2ab490a) |
---|---|
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; --- 155 unchanged lines hidden (view full) --- 164 MemDepEntry(DynInstPtr &new_inst) 165 : inst(new_inst), regsReady(false), memDepReady(false), 166 completed(false), squashed(false) 167 { 168#ifdef DEBUG 169 ++memdep_count; 170 171 DPRINTF(MemDepUnit, "Memory dependency entry created. " | 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; --- 155 unchanged lines hidden (view full) --- 164 MemDepEntry(DynInstPtr &new_inst) 165 : inst(new_inst), regsReady(false), memDepReady(false), 166 completed(false), squashed(false) 167 { 168#ifdef DEBUG 169 ++memdep_count; 170 171 DPRINTF(MemDepUnit, "Memory dependency entry created. " |
172 "memdep_count=%i\n", memdep_count); | 172 "memdep_count=%i %s\n", memdep_count, inst->pcState()); |
173#endif 174 } 175 176 /** Frees any pointers. */ 177 ~MemDepEntry() 178 { 179 for (int i = 0; i < dependInsts.size(); ++i) { 180 dependInsts[i] = NULL; 181 } 182#ifdef DEBUG 183 --memdep_count; 184 185 DPRINTF(MemDepUnit, "Memory dependency entry deleted. " | 173#endif 174 } 175 176 /** Frees any pointers. */ 177 ~MemDepEntry() 178 { 179 for (int i = 0; i < dependInsts.size(); ++i) { 180 dependInsts[i] = NULL; 181 } 182#ifdef DEBUG 183 --memdep_count; 184 185 DPRINTF(MemDepUnit, "Memory dependency entry deleted. " |
186 "memdep_count=%i\n", memdep_count); | 186 "memdep_count=%i %s\n", memdep_count, inst->pcState()); |
187#endif 188 } 189 190 /** Returns the name of the memory dependence entry. */ 191 std::string name() const { return "memdepentry"; } 192 193 /** The instruction being tracked. */ 194 DynInstPtr inst; --- 76 unchanged lines hidden --- | 187#endif 188 } 189 190 /** Returns the name of the memory dependence entry. */ 191 std::string name() const { return "memdepentry"; } 192 193 /** The instruction being tracked. */ 194 DynInstPtr inst; --- 76 unchanged lines hidden --- |