Prefetcher.py (13422:4ec52da74cd5) Prefetcher.py (13427:72a3afac3e78)
1# Copyright (c) 2012, 2014 ARM Limited
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license

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

38#
39# Authors: Ron Dreslinski
40# Mitch Hayenga
41
42from ClockedObject import ClockedObject
43from m5.SimObject import *
44from m5.params import *
45from m5.proxy import *
1# Copyright (c) 2012, 2014 ARM Limited
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license

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

38#
39# Authors: Ron Dreslinski
40# Mitch Hayenga
41
42from ClockedObject import ClockedObject
43from m5.SimObject import *
44from m5.params import *
45from m5.proxy import *
46from ReplacementPolicies import *
46
47class HWPProbeEvent(object):
48 def __init__(self, prefetcher, obj, *listOfNames):
49 self.obj = obj
50 self.prefetcher = prefetcher
51 self.names = listOfNames
52
53 def register(self):

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

121 start_conf = Param.Int(4, "Starting confidence for new entries")
122
123 table_sets = Param.Int(16, "Number of sets in PC lookup table")
124 table_assoc = Param.Int(4, "Associativity of PC lookup table")
125 use_master_id = Param.Bool(True, "Use master id based history")
126
127 degree = Param.Int(4, "Number of prefetches to generate")
128
47
48class HWPProbeEvent(object):
49 def __init__(self, prefetcher, obj, *listOfNames):
50 self.obj = obj
51 self.prefetcher = prefetcher
52 self.names = listOfNames
53
54 def register(self):

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

122 start_conf = Param.Int(4, "Starting confidence for new entries")
123
124 table_sets = Param.Int(16, "Number of sets in PC lookup table")
125 table_assoc = Param.Int(4, "Associativity of PC lookup table")
126 use_master_id = Param.Bool(True, "Use master id based history")
127
128 degree = Param.Int(4, "Number of prefetches to generate")
129
130 # Get replacement policy
131 replacement_policy = Param.BaseReplacementPolicy(RandomRP(),
132 "Replacement policy")
133
129class TaggedPrefetcher(QueuedPrefetcher):
130 type = 'TaggedPrefetcher'
131 cxx_class = 'TaggedPrefetcher'
132 cxx_header = "mem/cache/prefetch/tagged.hh"
133
134 degree = Param.Int(2, "Number of prefetches to generate")
134class TaggedPrefetcher(QueuedPrefetcher):
135 type = 'TaggedPrefetcher'
136 cxx_class = 'TaggedPrefetcher'
137 cxx_header = "mem/cache/prefetch/tagged.hh"
138
139 degree = Param.Int(2, "Number of prefetches to generate")