summaryrefslogtreecommitdiff
path: root/src/mem/cache/coherence/CoherenceProtocol.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mem/cache/coherence/CoherenceProtocol.py')
-rw-r--r--src/mem/cache/coherence/CoherenceProtocol.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mem/cache/coherence/CoherenceProtocol.py b/src/mem/cache/coherence/CoherenceProtocol.py
new file mode 100644
index 000000000..82adb6862
--- /dev/null
+++ b/src/mem/cache/coherence/CoherenceProtocol.py
@@ -0,0 +1,8 @@
+from m5.SimObject import SimObject
+from m5.params import *
+class Coherence(Enum): vals = ['uni', 'msi', 'mesi', 'mosi', 'moesi']
+
+class CoherenceProtocol(SimObject):
+ type = 'CoherenceProtocol'
+ do_upgrades = Param.Bool(True, "use upgrade transactions?")
+ protocol = Param.Coherence("name of coherence protocol")