Alex, It's not clear why your trying to do what your asking. It might be easier to create a new C++ Class (or append some members to an existing C++ Class such as Sequencer/CacheMemory/Prefetcher depending on what your trying to do), and access whatever arrays/data structures you want via function calls from slicc:
l1dCacheMemory.getDataStructures(); Sure, there might be some "extra" function call overhead if you do it repeatedly, but its easier than trying to hack in new ways into SLICC. Look at RubySlicc_Types.sm at how the members of external c++ classes are declared. Malek On Wed, Oct 2, 2013 at 7:29 PM, Alex Tomala <[email protected]> wrote: > Hello, > > I am trying to figure out a way to declare an array of an enumerated type, > but I seem to have issues with it. None of the standard C++ methods work, > so I am wondering if they is anyway to make an array with SLICC (or find a > way around it). > > - Alex > > _______________________________________________ > gem5-users mailing list > [email protected] > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >
_______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
