WeightedLRUPolicy.hh (11308:7d8836fd043d) | WeightedLRUPolicy.hh (11341:bda2c39fd9fd) |
---|---|
1/* 2 * Copyright (c) 2013-2015 Advanced Micro Devices, Inc. 3 * All rights reserved. 4 * 5 * For use for simulation and test purposes only 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions are met: --- 35 unchanged lines hidden (view full) --- 44 45class WeightedLRUPolicy : public AbstractReplacementPolicy 46{ 47 public: 48 typedef WeightedLRUReplacementPolicyParams Params; 49 WeightedLRUPolicy(const Params* p); 50 ~WeightedLRUPolicy(); 51 | 1/* 2 * Copyright (c) 2013-2015 Advanced Micro Devices, Inc. 3 * All rights reserved. 4 * 5 * For use for simulation and test purposes only 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions are met: --- 35 unchanged lines hidden (view full) --- 44 45class WeightedLRUPolicy : public AbstractReplacementPolicy 46{ 47 public: 48 typedef WeightedLRUReplacementPolicyParams Params; 49 WeightedLRUPolicy(const Params* p); 50 ~WeightedLRUPolicy(); 51 |
52 void touch(int64_t set, int64_t way, Tick time); | 52 void touch(int64_t set, int64_t way, Tick time) override; |
53 void touch(int64_t set, int64_t way, Tick time, int occupancy); 54 int64_t getVictim(int64_t set) const override; 55 | 53 void touch(int64_t set, int64_t way, Tick time, int occupancy); 54 int64_t getVictim(int64_t set) const override; 55 |
56 bool useOccupancy() const { return true; } | 56 bool useOccupancy() const override { return true; } |
57 58 CacheMemory * m_cache; 59 int **m_last_occ_ptr; 60}; 61 62#endif // __MEM_RUBY_SYSTEM_WeightedLRUPolicy_HH__ | 57 58 CacheMemory * m_cache; 59 int **m_last_occ_ptr; 60}; 61 62#endif // __MEM_RUBY_SYSTEM_WeightedLRUPolicy_HH__ |