summaryrefslogtreecommitdiff
path: root/src/learning_gem5/part3/SConsopts
diff options
context:
space:
mode:
authorJason Lowe-Power <jason@lowepower.com>2018-03-09 12:01:34 -0800
committerJason Lowe-Power <jason@lowepower.com>2018-03-23 15:50:28 +0000
commit0169113414abff79f9d3519b8de0e54f2782ba82 (patch)
tree1f1d71e5ee00295904e102e6060185cc01ae810d /src/learning_gem5/part3/SConsopts
parent288cbf81451f24871d8e90cd1365841521d947a6 (diff)
downloadgem5-0169113414abff79f9d3519b8de0e54f2782ba82.tar.xz
learning_gem5: Add a simple Ruby protocol
Adds the MSI protocol from "A Primer on Memory Consistency and Cache Coherence" by Daniel J. Sorin, Mark D. Hill, and David A. Wood. This code follows Learning gem5 Part 3. http://learning.gem5.org/book/part3/index.html This is meant to be a simple, clean, example of how to make a Ruby protocol. Currently, it only works in SE mode. The next changeset will contain the required configuration files. Change-Id: If2cc53f5e6b9c6891749f929d872671615a2b4ab Signed-off-by: Jason Lowe-Power <jason@lowepower.com> Reviewed-on: https://gem5-review.googlesource.com/8942
Diffstat (limited to 'src/learning_gem5/part3/SConsopts')
-rw-r--r--src/learning_gem5/part3/SConsopts11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/learning_gem5/part3/SConsopts b/src/learning_gem5/part3/SConsopts
new file mode 100644
index 000000000..c8573d3ac
--- /dev/null
+++ b/src/learning_gem5/part3/SConsopts
@@ -0,0 +1,11 @@
+Import('*')
+
+# NOTE: All SLICC setup code found in src/mem/protocol/SConscript
+
+# Register this protocol with gem5/SCons
+all_protocols.extend([
+ 'MSI',
+])
+
+# Add this directory to the search path for SLICC
+protocol_dirs.append(str(Dir('.').abspath))