base.cc (6227:a17798f2a52c) base.cc (6978:ab05e20dc4a7)
1/*
2 * Copyright (c) 2003-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;

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

57 blkSize(p->block_size),
58 hitLatency(p->latency),
59 numTarget(p->tgts_per_mshr),
60 forwardSnoops(p->forward_snoops),
61 blocked(0),
62 noTargetMSHR(NULL),
63 missCount(p->max_miss_count),
64 drainEvent(NULL),
1/*
2 * Copyright (c) 2003-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;

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

57 blkSize(p->block_size),
58 hitLatency(p->latency),
59 numTarget(p->tgts_per_mshr),
60 forwardSnoops(p->forward_snoops),
61 blocked(0),
62 noTargetMSHR(NULL),
63 missCount(p->max_miss_count),
64 drainEvent(NULL),
65 addrRange(p->addr_range)
65 addrRange(p->addr_range),
66 _numCpus(p->num_cpus)
66{
67}
68
69void
70BaseCache::CachePort::recvStatusChange(Port::Status status)
71{
72 if (status == Port::RangeChange) {
73 otherPort->sendStatusChange(Port::RangeChange);

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

143 using namespace Stats;
144
145 // Hit statistics
146 for (int access_idx = 0; access_idx < MemCmd::NUM_MEM_CMDS; ++access_idx) {
147 MemCmd cmd(access_idx);
148 const string &cstr = cmd.toString();
149
150 hits[access_idx]
67{
68}
69
70void
71BaseCache::CachePort::recvStatusChange(Port::Status status)
72{
73 if (status == Port::RangeChange) {
74 otherPort->sendStatusChange(Port::RangeChange);

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

144 using namespace Stats;
145
146 // Hit statistics
147 for (int access_idx = 0; access_idx < MemCmd::NUM_MEM_CMDS; ++access_idx) {
148 MemCmd cmd(access_idx);
149 const string &cstr = cmd.toString();
150
151 hits[access_idx]
151 .init(maxThreadsPerCPU)
152#if FULL_SYSTEM
153 .init(_numCpus + 1)
154#else
155 .init(_numCpus)
156#endif
152 .name(name() + "." + cstr + "_hits")
153 .desc("number of " + cstr + " hits")
154 .flags(total | nozero | nonan)
155 ;
156 }
157
158// These macros make it easier to sum the right subset of commands and
159// to change the subset of commands that are considered "demand" vs

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

180 overallHits = demandHits + SUM_NON_DEMAND(hits);
181
182 // Miss statistics
183 for (int access_idx = 0; access_idx < MemCmd::NUM_MEM_CMDS; ++access_idx) {
184 MemCmd cmd(access_idx);
185 const string &cstr = cmd.toString();
186
187 misses[access_idx]
157 .name(name() + "." + cstr + "_hits")
158 .desc("number of " + cstr + " hits")
159 .flags(total | nozero | nonan)
160 ;
161 }
162
163// These macros make it easier to sum the right subset of commands and
164// to change the subset of commands that are considered "demand" vs

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

185 overallHits = demandHits + SUM_NON_DEMAND(hits);
186
187 // Miss statistics
188 for (int access_idx = 0; access_idx < MemCmd::NUM_MEM_CMDS; ++access_idx) {
189 MemCmd cmd(access_idx);
190 const string &cstr = cmd.toString();
191
192 misses[access_idx]
188 .init(maxThreadsPerCPU)
193#if FULL_SYSTEM
194 .init(_numCpus + 1)
195#else
196 .init(_numCpus)
197#endif
189 .name(name() + "." + cstr + "_misses")
190 .desc("number of " + cstr + " misses")
191 .flags(total | nozero | nonan)
192 ;
193 }
194
195 demandMisses
196 .name(name() + ".demand_misses")

--- 443 unchanged lines hidden ---
198 .name(name() + "." + cstr + "_misses")
199 .desc("number of " + cstr + " misses")
200 .flags(total | nozero | nonan)
201 ;
202 }
203
204 demandMisses
205 .name(name() + ".demand_misses")

--- 443 unchanged lines hidden ---