ReplacementPolicies.py (12607:b1cc6815194e) ReplacementPolicies.py (12626:e161d7725d4b)
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

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

49 type = 'MRURP'
50 cxx_class = 'MRURP'
51 cxx_header = "mem/cache/replacement_policies/mru_rp.hh"
52
53class RandomRP(BaseReplacementPolicy):
54 type = 'RandomRP'
55 cxx_class = 'RandomRP'
56 cxx_header = "mem/cache/replacement_policies/random_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

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

49 type = 'MRURP'
50 cxx_class = 'MRURP'
51 cxx_header = "mem/cache/replacement_policies/mru_rp.hh"
52
53class RandomRP(BaseReplacementPolicy):
54 type = 'RandomRP'
55 cxx_class = 'RandomRP'
56 cxx_header = "mem/cache/replacement_policies/random_rp.hh"
57
58class BRRIPRP(BaseReplacementPolicy):
59 type = 'BRRIPRP'
60 cxx_class = 'BRRIPRP'
61 cxx_header = "mem/cache/replacement_policies/brrip_rp.hh"
62 max_RRPV = Param.Unsigned(3, "Maximum RRPV possible")
63 hit_priority = Param.Bool(False,
64 "Prioritize evicting blocks that havent had a hit recently")
65 btp = Param.Percent(3,
66 "Percentage of blocks to be inserted with long RRPV")