> Let me paint the actual situation. Each coherence protocol in Ruby generates
> a MachineType enum, and this varies depending on the protocol. This enum and
> some of the functions defined on the enum are used in different parts of
> Ruby. Currently, I see this enum to be the only blocking factor in compiling
> different protocols together. I have not been able to find a good way to
> make this enum private to the protocols. Any suggestions?

Ah.  You just need to cast the enum variables to integers (or some
typedef), that would work.  You could also use a union of the enums
and a typedef, but that's probably overkill.

  Nate
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to