mshr.cc (8931:7a1dfb191e3f) | mshr.cc (8988:528f0fa80f76) |
---|---|
1/* 2 * Copyright (c) 2002-2005 The Regents of The University of Michigan 3 * Copyright (c) 2010 Advanced Micro Devices, Inc. 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 147 unchanged lines hidden (view full) --- 156void 157MSHR::TargetList:: 158print(std::ostream &os, int verbosity, const std::string &prefix) const 159{ 160 ConstIterator end_i = end(); 161 for (ConstIterator i = begin(); i != end_i; ++i) { 162 const char *s; 163 switch (i->source) { | 1/* 2 * Copyright (c) 2002-2005 The Regents of The University of Michigan 3 * Copyright (c) 2010 Advanced Micro Devices, Inc. 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 147 unchanged lines hidden (view full) --- 156void 157MSHR::TargetList:: 158print(std::ostream &os, int verbosity, const std::string &prefix) const 159{ 160 ConstIterator end_i = end(); 161 for (ConstIterator i = begin(); i != end_i; ++i) { 162 const char *s; 163 switch (i->source) { |
164 case Target::FromCPU: s = "FromCPU"; 165 case Target::FromSnoop: s = "FromSnoop"; 166 case Target::FromPrefetcher: s = "FromPrefetcher"; 167 default: s = ""; | 164 case Target::FromCPU: 165 s = "FromCPU"; 166 break; 167 case Target::FromSnoop: 168 s = "FromSnoop"; 169 break; 170 case Target::FromPrefetcher: 171 s = "FromPrefetcher"; 172 break; 173 default: 174 s = ""; 175 break; |
168 } 169 ccprintf(os, "%s%s: ", prefix, s); 170 i->pkt->print(os, verbosity, ""); 171 } 172} 173 174 175void --- 280 unchanged lines hidden --- | 176 } 177 ccprintf(os, "%s%s: ", prefix, s); 178 i->pkt->print(os, verbosity, ""); 179 } 180} 181 182 183void --- 280 unchanged lines hidden --- |