CacheMemory.hh (10974:bbdf1177f250) CacheMemory.hh (10978:436d5dde4bb7)
1/*
2 * Copyright (c) 1999-2012 Mark D. Hill and David A. Wood
3 * Copyright (c) 2013 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

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

112 bool isLocked (const Address& addr, int context);
113
114 // Print cache contents
115 void print(std::ostream& out) const;
116 void printData(std::ostream& out) const;
117
118 void regStats();
119 bool checkResourceAvailable(CacheResourceType res, Address addr);
1/*
2 * Copyright (c) 1999-2012 Mark D. Hill and David A. Wood
3 * Copyright (c) 2013 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

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

112 bool isLocked (const Address& addr, int context);
113
114 // Print cache contents
115 void print(std::ostream& out) const;
116 void printData(std::ostream& out) const;
117
118 void regStats();
119 bool checkResourceAvailable(CacheResourceType res, Address addr);
120 void recordRequestType(CacheRequestType requestType);
120 void recordRequestType(CacheRequestType requestType, Address addr);
121
122 public:
123 Stats::Scalar m_demand_hits;
124 Stats::Scalar m_demand_misses;
125 Stats::Formula m_demand_accesses;
126
127 Stats::Scalar m_sw_prefetches;
128 Stats::Scalar m_hw_prefetches;

--- 57 unchanged lines hidden ---
121
122 public:
123 Stats::Scalar m_demand_hits;
124 Stats::Scalar m_demand_misses;
125 Stats::Formula m_demand_accesses;
126
127 Stats::Scalar m_sw_prefetches;
128 Stats::Scalar m_hw_prefetches;

--- 57 unchanged lines hidden ---