summaryrefslogtreecommitdiff
path: root/src/arch/x86/isa/microasm.isa
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2007-08-26 20:38:42 -0700
committerGabe Black <gblack@eecs.umich.edu>2007-08-26 20:38:42 -0700
commit03880cf828d747a68c013c05003a51266ef9a512 (patch)
tree910e807585b41de937ade2a09ad6f715e3899fd0 /src/arch/x86/isa/microasm.isa
parent9c99f5f825a3440ce8efef2e31f801527c5939d6 (diff)
downloadgem5-03880cf828d747a68c013c05003a51266ef9a512.tar.xz
X86: Make cpuid actually consider the eax parameter and return different values.
--HG-- extra : convert_revision : 527c1cacdd20ab162859bba7f9a6bed33afa2d4f
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 af3148631..929fd0075 100644
--- a/src/arch/x86/isa/microasm.isa
+++ b/src/arch/x86/isa/microasm.isa
@@ -125,5 +125,10 @@ let {{
env.dataSize = 8;
'''
+ def labeler(labelStr):
+ return "label_%s" % labelStr
+
+ assembler.symbols["label"] = labeler
+
macroopDict = assembler.assemble(microcode)
}};