From 0169113414abff79f9d3519b8de0e54f2782ba82 Mon Sep 17 00:00:00 2001 From: Jason Lowe-Power Date: Fri, 9 Mar 2018 12:01:34 -0800 Subject: 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 Reviewed-on: https://gem5-review.googlesource.com/8942 --- src/learning_gem5/part3/SConsopts | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/learning_gem5/part3/SConsopts (limited to 'src/learning_gem5/part3/SConsopts') 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)) -- cgit v1.2.3