diff options
author | Pouya Fotouhi <pfotouhi@ucdavis.edu> | 2019-02-27 13:25:22 -0800 |
---|---|---|
committer | Pouya Fotouhi <pfotouhi@ucdavis.edu> | 2019-07-23 16:59:39 +0000 |
commit | 6f45523ed7305f290e0cc1cc475df13c8ab22b3e (patch) | |
tree | e9fba72ad3e991d1fb1a6d8f177a60ec57d58f60 /src/mem/slicc/parser.py | |
parent | 2757368c842e445b7dad79941172e396a14d58d5 (diff) | |
download | gem5-6f45523ed7305f290e0cc1cc475df13c8ab22b3e.tar.xz |
mem-ruby: Adding a new slicc statement - to not evict locked cachelines
Ruby caches block incoming ports with messages on a locked
address to make sure the line would not be replaced by others.
But they do not check the lock upon capacity/conflict misses.
This change adds a new slicc statement "check_on_cache_probe" which takes
two arguments (mandatoryQueue for the controller, and the line subject
to eviction - i.e. address returned by cacheProbe).
If the line is locked, incoming message is delayed for 1 cycle and the
controller skips this request (i.e. does not trigger an event).
Coherence protocols should be updated accordingly. One use case for MESI
Two Level will be added in a separate change.
Signed-off-by: Pouya Fotouhi <pfotouhi@ucdavis.edu>
Change-Id: I79ca2d45518de7a4e382b520a11f8e221b0cb803
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/16808
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Srikant Bharadwaj <srikant.bharadwaj@amd.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
Diffstat (limited to 'src/mem/slicc/parser.py')
-rw-r--r-- | src/mem/slicc/parser.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mem/slicc/parser.py b/src/mem/slicc/parser.py index 5c2b212a2..1df5b7782 100644 --- a/src/mem/slicc/parser.py +++ b/src/mem/slicc/parser.py @@ -113,6 +113,7 @@ class SLICC(Grammar): 'check_allocate' : 'CHECK_ALLOCATE', 'check_next_cycle' : 'CHECK_NEXT_CYCLE', 'check_stop_slots' : 'CHECK_STOP_SLOTS', + 'check_on_cache_probe' : 'CHECK_PROBE', 'static_cast' : 'STATIC_CAST', 'if' : 'IF', 'is_valid' : 'IS_VALID', @@ -605,6 +606,10 @@ class SLICC(Grammar): "statement : CHECK_STOP_SLOTS '(' var ',' STRING ',' STRING ')' SEMI" p[0] = ast.CheckStopStatementAST(self, p[3], p[5], p[7]) + def p_statement__check_probe(self, p): + "statement : CHECK_PROBE '(' var ',' var ')' SEMI" + p[0] = ast.CheckProbeStatementAST(self, p[3], p[5]) + def p_statement__return(self, p): "statement : RETURN expr SEMI" p[0] = ast.ReturnStatementAST(self, p[2]) |