projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9416756
)
Microassembler: Pass the actual mnemonic used to the macroop add_micro function
author
Gabe Black
<gblack@eecs.umich.edu>
Sat, 1 Sep 2007 05:26:02 +0000
(22:26 -0700)
committer
Gabe Black
<gblack@eecs.umich.edu>
Sat, 1 Sep 2007 05:26:02 +0000
(22:26 -0700)
--HG--
extra : convert_revision :
acaee747ab30747d602c1f4ac5f0c2b2573a2a9b
src/arch/micro_asm.py
patch
|
blob
|
history
diff --git
a/src/arch/micro_asm.py
b/src/arch/micro_asm.py
index 925e6b585f6b62059bee2dc9bb680b56dcf5fccd..36c9919c095e766b0bf38c05d15c995d34160d80 100644
(file)
--- a/
src/arch/micro_asm.py
+++ b/
src/arch/micro_asm.py
@@
-55,7
+55,7
@@
class Micro_Container(object):
self.micro_classes = {}
self.labels = {}
- def add_microop(self, microop):
+ def add_microop(self, m
nemonic, m
icroop):
self.microops.append(microop)
def __str__(self):
@@
-143,7
+143,7
@@
def handle_statement(parser, container, statement):
container.labels[label.text] = microop
if label.extern:
container.externs[label.text] = microop
- container.add_microop(microop)
+ container.add_microop(
statement.mnemonic,
microop)
except:
print_error("Error adding microop.")
raise