ReplacementPolicies.py (12634:e69074a3c9b9) ReplacementPolicies.py (12635:3abc52e4b4f3)
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

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

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
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

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

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
59class LIPRP(BIPRP):
60 btp = 0
61
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 ---
62class MRURP(BaseReplacementPolicy):
63 type = 'MRURP'
64 cxx_class = 'MRURP'
65 cxx_header = "mem/cache/replacement_policies/mru_rp.hh"
66
67class RandomRP(BaseReplacementPolicy):
68 type = 'RandomRP'
69 cxx_class = 'RandomRP'

--- 14 unchanged lines hidden ---