ReplacementPolicies.py (12628:458d655f2abb) | ReplacementPolicies.py (12634:e69074a3c9b9) |
---|---|
1# Copyright (c) 2018 Inria 2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are 6# met: redistributions of source code must retain the above copyright 7# notice, this list of conditions and the following disclaimer; 8# redistributions in binary form must reproduce the above copyright --- 36 unchanged lines hidden (view full) --- 45 cxx_class = 'LFURP' 46 cxx_header = "mem/cache/replacement_policies/lfu_rp.hh" 47 48class LRURP(BaseReplacementPolicy): 49 type = 'LRURP' 50 cxx_class = 'LRURP' 51 cxx_header = "mem/cache/replacement_policies/lru_rp.hh" 52 | 1# Copyright (c) 2018 Inria 2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are 6# met: redistributions of source code must retain the above copyright 7# notice, this list of conditions and the following disclaimer; 8# redistributions in binary form must reproduce the above copyright --- 36 unchanged lines hidden (view full) --- 45 cxx_class = 'LFURP' 46 cxx_header = "mem/cache/replacement_policies/lfu_rp.hh" 47 48class LRURP(BaseReplacementPolicy): 49 type = 'LRURP' 50 cxx_class = 'LRURP' 51 cxx_header = "mem/cache/replacement_policies/lru_rp.hh" 52 |
53class BIPRP(LRURP): 54 type = 'BIPRP' 55 cxx_class = 'BIPRP' 56 cxx_header = "mem/cache/replacement_policies/bip_rp.hh" 57 btp = Param.Percent(3, "Percentage of blocks to be inserted as MRU") 58 |
|
53class MRURP(BaseReplacementPolicy): 54 type = 'MRURP' 55 cxx_class = 'MRURP' 56 cxx_header = "mem/cache/replacement_policies/mru_rp.hh" 57 58class RandomRP(BaseReplacementPolicy): 59 type = 'RandomRP' 60 cxx_class = 'RandomRP' --- 14 unchanged lines hidden --- | 59class MRURP(BaseReplacementPolicy): 60 type = 'MRURP' 61 cxx_class = 'MRURP' 62 cxx_header = "mem/cache/replacement_policies/mru_rp.hh" 63 64class RandomRP(BaseReplacementPolicy): 65 type = 'RandomRP' 66 cxx_class = 'RandomRP' --- 14 unchanged lines hidden --- |