summaryrefslogtreecommitdiff
path: root/objects
diff options
context:
space:
mode:
authorSteve Reinhardt <stever@eecs.umich.edu>2005-03-07 20:56:02 -0500
committerSteve Reinhardt <stever@eecs.umich.edu>2005-03-07 20:56:02 -0500
commitc720389366c83401c878c36b7b3a917c906d26b9 (patch)
tree4c6e6e0db9a8665f569a18da3bf8436df8437ea2 /objects
parente5f945967b2d49f3c14384be947a12dbf02260da (diff)
downloadgem5-c720389366c83401c878c36b7b3a917c906d26b9.tar.xz
More restructuring on Python config code for auto-generating
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
Diffstat (limited to 'objects')
-rw-r--r--objects/CoherenceProtocol.mpy2
-rw-r--r--objects/Ide.mpy2
2 files changed, 2 insertions, 2 deletions
diff --git a/objects/CoherenceProtocol.mpy b/objects/CoherenceProtocol.mpy
index ae041b638..f3b0026b7 100644
--- a/objects/CoherenceProtocol.mpy
+++ b/objects/CoherenceProtocol.mpy
@@ -1,4 +1,4 @@
-Coherence = Enum('uni', 'msi', 'mesi', 'mosi', 'moesi')
+class Coherence(Enum): vals = ['uni', 'msi', 'mesi', 'mosi', 'moesi']
simobj CoherenceProtocol(SimObject):
type = 'CoherenceProtocol'
diff --git a/objects/Ide.mpy b/objects/Ide.mpy
index c4aa2aca0..ce760ad96 100644
--- a/objects/Ide.mpy
+++ b/objects/Ide.mpy
@@ -1,6 +1,6 @@
from Pci import PciDevice
-IdeID = Enum('master', 'slave')
+class IdeID(Enum): vals = ['master', 'slave']
simobj IdeDisk(SimObject):
type = 'IdeDisk'