From ee7d8fdcb2226139fd1d6a6f0cde987721ea3699 Mon Sep 17 00:00:00 2001 From: Nikos Nikoleris Date: Fri, 12 Aug 2016 14:11:45 +0100 Subject: mem: Add support for secure packets in the snoop filter Secure and non-secure data can coexist in the cache and therefore the snoop filter should treat differently packets with secure and non secure accesses. This patch uses the lower bits of the line address to keep track of whether the packet is addressing secure memory or not. Change-Id: I54a5e614dad566a5083582bede86c86896f2c2c1 Reviewed-by: Andreas Sandberg Reviewed-by: Stephan Diestelhorst Reviewed-by: Tony Gutierrez --- src/mem/snoop_filter.hh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/mem/snoop_filter.hh') diff --git a/src/mem/snoop_filter.hh b/src/mem/snoop_filter.hh index 3851e5810..85cc75e9b 100755 --- a/src/mem/snoop_filter.hh +++ b/src/mem/snoop_filter.hh @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013-2015 ARM Limited + * Copyright (c) 2013-2016 ARM Limited * All rights reserved * * The license below extends only to copyright in the software and shall @@ -143,7 +143,7 @@ class SnoopFilter : public SimObject { * @param will_retry This request will retry on this bus / snoop filter * @param addr Packet address, merely for sanity checking */ - void finishRequest(bool will_retry, const Addr addr); + void finishRequest(bool will_retry, Addr addr, bool is_secure); /** * Handle an incoming snoop from below (the master port). These @@ -282,6 +282,14 @@ class SnoopFilter : public SimObject { /** Max capacity in terms of cache blocks tracked, for sanity checking */ const unsigned maxEntryCount; + /** + * Use the lower bits of the address to keep track of the line status + */ + enum LineStatus { + /** block holds data from the secure memory space */ + LineSecure = 0x01, + }; + /** Statistics */ Stats::Scalar totRequests; Stats::Scalar hitSingleRequests; -- cgit v1.2.3