diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2007-08-31 22:26:02 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2007-08-31 22:26:02 -0700 |
commit | 9277545ba6b9a7756c34f90626860e44a833847d (patch) | |
tree | 2cacb45d4693314e77e7e625fb124d7608f1a1e8 | |
parent | 941675690ca77475f8f311e99f3660d0394e583c (diff) | |
download | gem5-9277545ba6b9a7756c34f90626860e44a833847d.tar.xz |
Microassembler: Pass the actual mnemonic used to the macroop add_micro function
--HG--
extra : convert_revision : acaee747ab30747d602c1f4ac5f0c2b2573a2a9b
-rw-r--r-- | src/arch/micro_asm.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/micro_asm.py b/src/arch/micro_asm.py index 925e6b585..36c9919c0 100644 --- 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, mnemonic, microop): 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 |