summaryrefslogtreecommitdiff
path: root/src/arch/x86/isa/microasm.isa
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2008-10-12 17:52:51 -0700
committerGabe Black <gblack@eecs.umich.edu>2008-10-12 17:52:51 -0700
commitcefb768131b1d0582c5cbe83feaa97060dfe15af (patch)
treeec8baa94f26f120550e451ba544eaa9d261626f9 /src/arch/x86/isa/microasm.isa
parente5f80924671bf0cfaf02c51f4b98d529631733f1 (diff)
downloadgem5-cefb768131b1d0582c5cbe83feaa97060dfe15af.tar.xz
X86: Create a handy way to access labels from the ROM in microcode.
Diffstat (limited to 'src/arch/x86/isa/microasm.isa')
-rw-r--r--src/arch/x86/isa/microasm.isa5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/arch/x86/isa/microasm.isa b/src/arch/x86/isa/microasm.isa
index 9a5019f10..d7b008145 100644
--- a/src/arch/x86/isa/microasm.isa
+++ b/src/arch/x86/isa/microasm.isa
@@ -183,6 +183,11 @@ let {{
assembler.symbols["label"] = labeler
+ def rom_labeler(labelStr):
+ return "romMicroPC(RomLabels::extern_label_%s)" % labelStr
+
+ assembler.symbols["rom_label"] = rom_labeler
+
def stack_index(index):
return "(NUM_FLOATREGS + (((%s) + 8) %% 8))" % index