From 89a7fb03934b3e38c7d8b2c4818794b3ec874fdf Mon Sep 17 00:00:00 2001 From: Steve Reinhardt Date: Mon, 16 Feb 2009 08:56:40 -0800 Subject: Fixes to get prefetching working again. Apparently we broke it with the cache rewrite and never noticed. Thanks to Bao Yungang for a significant part of these changes (and for inspiring me to work on the rest). Some other overdue cleanup on the prefetch code too. --- src/mem/request.hh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/mem/request.hh') diff --git a/src/mem/request.hh b/src/mem/request.hh index f60eb17fa..761405aa6 100644 --- a/src/mem/request.hh +++ b/src/mem/request.hh @@ -424,6 +424,12 @@ class Request : public FastAlloc } /** Accessor function for pc.*/ + bool + hasPC() const + { + return flags.isSet(VALID_PC); + } + Addr getPC() const { -- cgit v1.2.3