summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2007-05-31 22:21:20 +0000
committerGabe Black <gblack@eecs.umich.edu>2007-05-31 22:21:20 +0000
commit2bdd4eda1279d2abd114be67055894fc301c41f5 (patch)
treebf929a15108c57fdcd1e2f8f746cf344c77cc31a /src/arch
parent287446396cceadec0f758ecde8dca268b9a60cd5 (diff)
downloadgem5-2bdd4eda1279d2abd114be67055894fc301c41f5.tar.xz
Add rom based macroops into the macroop dict instead of dropping them on the floor
--HG-- extra : convert_revision : 964391c8050af0239da32bcc77550740de1f3160
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/micro_asm.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/arch/micro_asm.py b/src/arch/micro_asm.py
index d9d9d1b21..7fb7b3f6d 100644
--- a/src/arch/micro_asm.py
+++ b/src/arch/micro_asm.py
@@ -72,6 +72,9 @@ class Rom_Macroop(object):
self.name = name
self.target = target
+ def __str__(self):
+ return "%s: %s\n" % (self.name, self.target)
+
class Rom(Micro_Container):
def __init__(self, name):
super(Rom, self).__init__(name)
@@ -329,7 +332,7 @@ def p_macroop_def_0(t):
print_error("ROM based macroop found, but no ROM macroop class was specified.")
raise TypeError, "ROM based macroop found, but no ROM macroop class was specified."
macroop = t.parser.rom_macroop_type(t[3], t[5])
- t[0] = macroop
+ t.parser.macroops[t[3]] = macroop
# Defines a macroop that is combinationally generated