summaryrefslogtreecommitdiff
path: root/src/arch/x86/isa/rom.isa
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2008-10-12 20:44:11 -0700
committerGabe Black <gblack@eecs.umich.edu>2008-10-12 20:44:11 -0700
commit6074b1abf2e235f9a5d3ad78879a805ca335dc0e (patch)
tree67640c9b80cec42bc70728c7d13195b0cd1e4df9 /src/arch/x86/isa/rom.isa
parent6b46e5204d52c8e46b48541d5112f7e9a1cadc43 (diff)
downloadgem5-6074b1abf2e235f9a5d3ad78879a805ca335dc0e.tar.xz
X86: Implement local labels for the ROM that actually refer into the ROM.
Diffstat (limited to 'src/arch/x86/isa/rom.isa')
-rw-r--r--src/arch/x86/isa/rom.isa3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/arch/x86/isa/rom.isa b/src/arch/x86/isa/rom.isa
index 59b280056..7d3eb8670 100644
--- a/src/arch/x86/isa/rom.isa
+++ b/src/arch/x86/isa/rom.isa
@@ -55,6 +55,9 @@ let {{
def getDeclaration(self):
declareLabels = "namespace RomLabels {\n"
+ for (label, microop) in self.labels.items():
+ declareLabels += "const static uint64_t label_%s = %d;\n" \
+ % (label, microop.micropc)
for (label, microop) in self.externs.items():
declareLabels += \
"const static MicroPC extern_label_%s = %d;\n" \