summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Nikoleris <nikos.nikoleris@arm.com>2016-05-26 09:49:52 +0100
committerNikos Nikoleris <nikos.nikoleris@arm.com>2017-12-05 11:47:01 +0000
commitd8afb8679301392561f4255edb9789d22aec5a2e (patch)
tree5e7e70f6a26da8b20a3c63fe1ff0612d3b8bc60c
parentad000b5606b37df7b474647675eea97b69e2d6c5 (diff)
downloadgem5-d8afb8679301392561f4255edb9789d22aec5a2e.tar.xz
mem: Add a WriteClean command to the packet class
A WriteClean packet allows a cache to write a block to a memory below without evicting its copy. A typical usecase for a WriteClean packet is a cache clean operation. Change-Id: If356cb067da5ddf3210c135f41ef0891fb811568 Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-by: Curtis Dunham <curtis.dunham@arm.com> Reviewed-by: Anouk Van Laer <anouk.vanlaer@arm.com> Reviewed-on: https://gem5-review.googlesource.com/5044 Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com> Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
-rw-r--r--src/mem/packet.cc5
-rw-r--r--src/mem/packet.hh3
2 files changed, 6 insertions, 2 deletions
diff --git a/src/mem/packet.cc b/src/mem/packet.cc
index e05783ca9..75dfb28cb 100644
--- a/src/mem/packet.cc
+++ b/src/mem/packet.cc
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2011-2016 ARM Limited
+ * Copyright (c) 2011-2017 ARM Limited
* All rights reserved
*
* The license below extends only to copyright in the software and shall
@@ -95,6 +95,9 @@ MemCmd::commandInfo[] =
* dirty. */
{ SET5(IsWrite, IsRequest, IsEviction, HasData, FromCache),
InvalidCmd, "WritebackClean" },
+ /* WriteClean - This allows a cache to write a dirty block to a memory
+ below without evicting its copy. */
+ { SET4(IsWrite, IsRequest, HasData, FromCache), InvalidCmd, "WriteClean" },
/* CleanEvict */
{ SET3(IsRequest, IsEviction, FromCache), InvalidCmd, "CleanEvict" },
/* SoftPFReq */
diff --git a/src/mem/packet.hh b/src/mem/packet.hh
index 0920f223b..330e2ae5e 100644
--- a/src/mem/packet.hh
+++ b/src/mem/packet.hh
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012-2016 ARM Limited
+ * Copyright (c) 2012-2017 ARM Limited
* All rights reserved
*
* The license below extends only to copyright in the software and shall
@@ -88,6 +88,7 @@ class MemCmd
WriteResp,
WritebackDirty,
WritebackClean,
+ WriteClean, // writes dirty data below without evicting
CleanEvict,
SoftPFReq,
HardPFReq,