Prefetcher.py (10382:452a5f178ec5) Prefetcher.py (10466:73b7549d979e)
1# Copyright (c) 2012 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

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

62 on_miss_only = Param.Bool(False,
63 "Only prefetch on miss (as opposed to always)")
64 on_read_only = Param.Bool(False,
65 "Only prefetch on read requests (write requests ignored)")
66 on_prefetch = Param.Bool(True,
67 "Let lower cache prefetcher train on prefetch requests")
68 inst_tagged = Param.Bool(True,
69 "Perform a tagged prefetch for instruction fetches always")
1# Copyright (c) 2012 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

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

62 on_miss_only = Param.Bool(False,
63 "Only prefetch on miss (as opposed to always)")
64 on_read_only = Param.Bool(False,
65 "Only prefetch on read requests (write requests ignored)")
66 on_prefetch = Param.Bool(True,
67 "Let lower cache prefetcher train on prefetch requests")
68 inst_tagged = Param.Bool(True,
69 "Perform a tagged prefetch for instruction fetches always")
70 sys = Param.System(Parent.any, "System this device belongs to")
70 sys = Param.System(Parent.any, "System this prefetcher belongs to")
71
72class StridePrefetcher(BasePrefetcher):
73 type = 'StridePrefetcher'
74 cxx_class = 'StridePrefetcher'
75 cxx_header = "mem/cache/prefetch/stride.hh"
76
77class TaggedPrefetcher(BasePrefetcher):
78 type = 'TaggedPrefetcher'
79 cxx_class = 'TaggedPrefetcher'
80 cxx_header = "mem/cache/prefetch/tagged.hh"
81
82
83
84
71
72class StridePrefetcher(BasePrefetcher):
73 type = 'StridePrefetcher'
74 cxx_class = 'StridePrefetcher'
75 cxx_header = "mem/cache/prefetch/stride.hh"
76
77class TaggedPrefetcher(BasePrefetcher):
78 type = 'TaggedPrefetcher'
79 cxx_class = 'TaggedPrefetcher'
80 cxx_header = "mem/cache/prefetch/tagged.hh"
81
82
83
84