From 8a54adc2a55c9858cb536fac3a9cd92bc47ce778 Mon Sep 17 00:00:00 2001 From: Brad Beckmann Date: Mon, 20 Jul 2015 09:15:18 -0500 Subject: slicc: enable overloading in functions not in classes For many years the slicc symbol table has supported overloaded functions in external classes. This patch extends that support to functions that are not part of classes (a.k.a. no parent). For example, this support allows slicc to understand that mapAddressToRange is overloaded and the NodeID is an optional parameter. --- src/mem/protocol/RubySlicc_ComponentMapping.sm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mem/protocol/RubySlicc_ComponentMapping.sm') diff --git a/src/mem/protocol/RubySlicc_ComponentMapping.sm b/src/mem/protocol/RubySlicc_ComponentMapping.sm index 37b2c3ef4..afb758b68 100644 --- a/src/mem/protocol/RubySlicc_ComponentMapping.sm +++ b/src/mem/protocol/RubySlicc_ComponentMapping.sm @@ -30,6 +30,8 @@ // Mapping functions int machineCount(MachineType machType); +MachineID mapAddressToRange(Address addr, MachineType type, + int low, int high); MachineID mapAddressToRange(Address addr, MachineType type, int low, int high, NodeID n); NetDest broadcast(MachineType type); -- cgit v1.2.3