From aefe9cc624902fe26535028f86ba3a45f555bcf0 Mon Sep 17 00:00:00 2001 From: Giacomo Gabrielli Date: Fri, 24 Jan 2014 15:29:30 -0600 Subject: mem: Add support for a security bit in the memory system This patch adds the basic building blocks required to support e.g. ARM TrustZone by discerning secure and non-secure memory accesses. --- src/mem/cache/blk.cc | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'src/mem/cache/blk.cc') diff --git a/src/mem/cache/blk.cc b/src/mem/cache/blk.cc index 4952ed758..210304dbf 100644 --- a/src/mem/cache/blk.cc +++ b/src/mem/cache/blk.cc @@ -1,4 +1,16 @@ /* + * Copyright (c) 2012-2013 ARM Limited + * All rights reserved + * + * The license below extends only to copyright in the software and shall + * not be construed as granting a license to any other intellectual + * property including but not limited to intellectual property relating + * to a hardware implementation of the functionality of the software + * licensed hereunder. You may use the software subject to the license + * terms below provided that you ensure that this notice is replicated + * unmodified and in its entirety in all distributions of the software, + * modified or unmodified, in source code or in binary form. + * * Copyright (c) 2007 The Regents of The University of Michigan * All rights reserved. * @@ -33,9 +45,10 @@ void CacheBlkPrintWrapper::print(std::ostream &os, int verbosity, const std::string &prefix) const { - ccprintf(os, "%sblk %c%c%c\n", prefix, + ccprintf(os, "%sblk %c%c%c%c\n", prefix, blk->isValid() ? 'V' : '-', blk->isWritable() ? 'E' : '-', - blk->isDirty() ? 'M' : '-'); + blk->isDirty() ? 'M' : '-', + blk->isSecure() ? 'S' : '-'); } -- cgit v1.2.3