diff options
Diffstat (limited to 'src/mem/slicc/ast/ObjDeclAST.py')
-rw-r--r-- | src/mem/slicc/ast/ObjDeclAST.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mem/slicc/ast/ObjDeclAST.py b/src/mem/slicc/ast/ObjDeclAST.py index 4509b4527..6469bc25a 100644 --- a/src/mem/slicc/ast/ObjDeclAST.py +++ b/src/mem/slicc/ast/ObjDeclAST.py @@ -41,7 +41,8 @@ class ObjDeclAST(DeclAST): def generate(self): machineComponentSym = False - if "network" in self and "virtual_network" not in self: + if "network" in self and not ("virtual_network" in self or + "physical_network" in self) : self.error("Network queues require a 'virtual_network' attribute") type = self.type_ast.type |