c720389366
of Param structs. objects/CoherenceProtocol.mpy: objects/Ide.mpy: Update for new Enum syntax. sim/pyconfig/m5config.py: More modest restructuring heading for auto-generating of param structs. - Revamped Enum handling: Enums are regular classes so they know their names now (makes it easier for generating C++ equivalents). - Created MetaSimObject class and moved some SimObject-specific stuff there (i.e. does not apply to ConfigNodes in general). --HG-- extra : convert_revision : a93b40dda3b038ebe8bffecac97e9079c22af561
6 lines
264 B
Text
6 lines
264 B
Text
class Coherence(Enum): vals = ['uni', 'msi', 'mesi', 'mosi', 'moesi']
|
|
|
|
simobj CoherenceProtocol(SimObject):
|
|
type = 'CoherenceProtocol'
|
|
do_upgrades = Param.Bool(True, "use upgrade transactions?")
|
|
protocol = Param.Coherence("name of coherence protocol")
|