From 73eafe484992d488b88c14d94b8909dc488b067b Mon Sep 17 00:00:00 2001 From: Nilay Vaish Date: Tue, 2 Oct 2012 14:35:43 -0500 Subject: ruby: remove some unused things in slicc This patch removes the parts of slicc that were required for multi-chip protocols. Going ahead, it seems multi-chip protocols would be implemented by playing with the network itself. --- src/mem/slicc/symbols/Func.py | 2 +- src/mem/slicc/symbols/StateMachine.py | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) (limited to 'src/mem/slicc/symbols') diff --git a/src/mem/slicc/symbols/Func.py b/src/mem/slicc/symbols/Func.py index ebbc5fe14..8e137d044 100644 --- a/src/mem/slicc/symbols/Func.py +++ b/src/mem/slicc/symbols/Func.py @@ -84,7 +84,7 @@ class Func(Symbol): if self.isInternalMachineFunc: klass = "%s_Controller" % self.machineStr else: - klass = "Chip" + self.error("No class found for the function %s" % self.ident) params = ', '.join(self.param_strings) diff --git a/src/mem/slicc/symbols/StateMachine.py b/src/mem/slicc/symbols/StateMachine.py index 43153c773..2b1e2a2b5 100644 --- a/src/mem/slicc/symbols/StateMachine.py +++ b/src/mem/slicc/symbols/StateMachine.py @@ -246,10 +246,7 @@ extern std::stringstream ${ident}_transitionComment; class $c_ident : public AbstractController { -// the coherence checker needs to call isBlockExclusive() and isBlockShared() -// making the Chip a friend class is an easy way to do this for now - -public: + public: typedef ${c_ident}Params Params; $c_ident(const Params *p); static int getNumControllers(); -- cgit v1.2.3