From 4889d8f78826331d567327535fcd481fa2caf939 Mon Sep 17 00:00:00 2001 From: Ron Dreslinski Date: Sat, 2 Apr 2005 20:36:08 -0500 Subject: Added support for multiple prefetch address from single access (depth of prefetch) also added the ability to squash some prefetchs to match the GHB technique python/m5/objects/BaseCache.mpy: Added parameters --HG-- extra : convert_revision : 92b646eb61455d283a5c2ac0b3f8fbd62e39fb87 --- python/m5/objects/BaseCache.mpy | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'python/m5/objects/BaseCache.mpy') diff --git a/python/m5/objects/BaseCache.mpy b/python/m5/objects/BaseCache.mpy index 198665325..3727f2f01 100644 --- a/python/m5/objects/BaseCache.mpy +++ b/python/m5/objects/BaseCache.mpy @@ -1,5 +1,7 @@ from BaseMem import BaseMem +class Prefetch(Enum): vals = ['none', 'tagged', 'stride', 'ghb'] + simobj BaseCache(BaseMem): type = 'BaseCache' adaptive_compression = Param.Bool(False, @@ -44,4 +46,11 @@ simobj BaseCache(BaseMem): "Number of entries in the harware prefetch queue") prefetch_past_page = Param.Bool(False, "Allow prefetches to cross virtual page boundaries") - + prefetch_serial_squash = Param.Bool(False, + "Squash prefetches with a later time on a subsequent miss") + prefetch_degree = Param.Int(1, + "Degree of the prefetch depth") + prefetch_latency = Param.Tick(10, + "Latency of the prefetcher") + prefetch_policy = Param.Prefetch('none', + "Type of prefetcher to use") -- cgit v1.2.3 From 1b2c81b9d7835eb77b319e66bb8e0fb40f771b99 Mon Sep 17 00:00:00 2001 From: Ron Dreslinski Date: Mon, 4 Apr 2005 16:25:22 -0400 Subject: Add more prefetcher support. SConscript: Add GHB prefetcher to build list python/m5/objects/BaseCache.mpy: Add parameters about when to remove prefetches and wether or not to use cpuid to differentiate access patterns --HG-- extra : convert_revision : 1d3fef21910f2f34b8c28d01b5f6e86eef53357c --- python/m5/objects/BaseCache.mpy | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'python/m5/objects/BaseCache.mpy') diff --git a/python/m5/objects/BaseCache.mpy b/python/m5/objects/BaseCache.mpy index 3727f2f01..214e0555c 100644 --- a/python/m5/objects/BaseCache.mpy +++ b/python/m5/objects/BaseCache.mpy @@ -54,3 +54,7 @@ simobj BaseCache(BaseMem): "Latency of the prefetcher") prefetch_policy = Param.Prefetch('none', "Type of prefetcher to use") + prefetch_cache_check_push = Param.Bool(True, + "Check if in cash on push or pop of prefetch queue") + prefetch_use_cpu_id = Param.Bool(True, + "Use the CPU ID to seperate calculations of prefetches") -- cgit v1.2.3