Hello,

I am doing some work that involves initializing a structure in SLICC. The code 
for the structure is as shown:

structure(ChildStates, external = "yes") {
}


The structure requires a variable in order to initialize the structure. When 
the SLICC code is converted to C++, I want the initialization code to look like:

ChildStates variable_name = new ChildStates(Parameter);

I don't know how this can be achieved though. I can only get the initialization 
code to look like:

ChildStates variable_name = new ChildStates();


I tried initializing the code in SLICC like this:

ChildStates variable_name, constructor_hack="Parameter";

But that initializes the variable without any parameters.

- Alex
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to