summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNikos Nikoleris <nikos.nikoleris@arm.com>2017-02-21 14:14:44 +0000
committerNikos Nikoleris <nikos.nikoleris@arm.com>2017-02-21 14:14:44 +0000
commit767aed453420fcf6c1fa0611a122a8636bf71003 (patch)
tree6dc47de12e84615091f89353a8a356da86c07c5f /src
parentd37bdc7366a58528a45ce5e622d12ad4c2dea6c0 (diff)
downloadgem5-767aed453420fcf6c1fa0611a122a8636bf71003.tar.xz
mem: Populate the secure flag in the writeback visitor
Previously the writeback visitor would not consider and set the secure flag for the blocks that are written back to memory. This patch fixes this. Change-Id: Ie1a425fa9211407a70a4343f2c6b3d073371378f Reviewed-by: Andreas Hansson <andreas.hansson@arm.com> Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Diffstat (limited to 'src')
-rw-r--r--src/mem/cache/cache.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mem/cache/cache.cc b/src/mem/cache/cache.cc
index b4d583eb8..95fa57a6e 100644
--- a/src/mem/cache/cache.cc
+++ b/src/mem/cache/cache.cc
@@ -1636,6 +1636,9 @@ Cache::writebackVisitor(CacheBlk &blk)
Request request(tags->regenerateBlkAddr(blk.tag, blk.set),
blkSize, 0, Request::funcMasterId);
request.taskId(blk.task_id);
+ if (blk.isSecure()) {
+ request.setFlags(Request::SECURE);
+ }
Packet packet(&request, MemCmd::WriteReq);
packet.dataStatic(blk.data);