ReplacementPolicies.py (12672:4e1c5ce90fcd) ReplacementPolicies.py (12684:44ebd2bc020f)
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

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

68 type = 'RandomRP'
69 cxx_class = 'RandomRP'
70 cxx_header = "mem/cache/replacement_policies/random_rp.hh"
71
72class BRRIPRP(BaseReplacementPolicy):
73 type = 'BRRIPRP'
74 cxx_class = 'BRRIPRP'
75 cxx_header = "mem/cache/replacement_policies/brrip_rp.hh"
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

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

68 type = 'RandomRP'
69 cxx_class = 'RandomRP'
70 cxx_header = "mem/cache/replacement_policies/random_rp.hh"
71
72class BRRIPRP(BaseReplacementPolicy):
73 type = 'BRRIPRP'
74 cxx_class = 'BRRIPRP'
75 cxx_header = "mem/cache/replacement_policies/brrip_rp.hh"
76 max_RRPV = Param.Unsigned(3, "Maximum RRPV possible")
76 max_RRPV = Param.Int(3, "Maximum RRPV possible")
77 hit_priority = Param.Bool(False,
78 "Prioritize evicting blocks that havent had a hit recently")
79 btp = Param.Percent(3,
80 "Percentage of blocks to be inserted with long RRPV")
81
82class RRIPRP(BRRIPRP):
83 btp = 0
84
85class NRURP(BRRIPRP):
86 btp = 0
87 max_RRPV = 1
77 hit_priority = Param.Bool(False,
78 "Prioritize evicting blocks that havent had a hit recently")
79 btp = Param.Percent(3,
80 "Percentage of blocks to be inserted with long RRPV")
81
82class RRIPRP(BRRIPRP):
83 btp = 0
84
85class NRURP(BRRIPRP):
86 btp = 0
87 max_RRPV = 1