mem-ruby: Fix Prefetcher to RubyPrefetcher in StateMachine.
authorseanzw <seanyukigeek@gmail.com>
Thu, 4 Jun 2020 02:59:50 +0000 (19:59 -0700)
committerZHENGRONG WANG <seanzw@g.ucla.edu>
Fri, 5 Jun 2020 22:14:12 +0000 (22:14 +0000)
After renaming Prefetcher to RubyPrefetcher, the slicc generator
should be updated to correctly initialize the prefetcher with
the controller.

Change-Id: Ia12a4640c35aaedd70a4a14e5a10793b060ba924
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/29974
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Bobby R. Bruce <bbruce@ucdavis.edu>
Tested-by: kokoro <noreply+kokoro@google.com>
src/mem/slicc/symbols/StateMachine.py

index 8e3a1f84b65214900b4a39e7491933d1852dd31a..2e9700fcfc8e83961e015480eddd9cd82cbcac1e 100644 (file)
@@ -87,7 +87,7 @@ class StateMachine(Symbol):
 
             self.symtab.registerSym(param.ident, var)
 
-            if str(param.type_ast.type) == "Prefetcher":
+            if str(param.type_ast.type) == "RubyPrefetcher":
                 self.prefetchers.append(var)
 
         self.states = OrderedDict()