summaryrefslogtreecommitdiff
path: root/src/arch/x86/isa/microasm.isa
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/x86/isa/microasm.isa')
-rw-r--r--src/arch/x86/isa/microasm.isa6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/arch/x86/isa/microasm.isa b/src/arch/x86/isa/microasm.isa
index 10404ec7a..b1fdfb54c 100644
--- a/src/arch/x86/isa/microasm.isa
+++ b/src/arch/x86/isa/microasm.isa
@@ -207,6 +207,12 @@ let {{
assembler.symbols["sti"] = stack_index("env.reg")
assembler.symbols["stim"] = stack_index("env.regm")
+ def readFpReg(reg_name):
+ return regIdx("MISCREG_%s" % reg_name)
+
+ assembler.symbols["fsw"] = readFpReg("FSW")
+ assembler.symbols["fcw"] = readFpReg("FCW")
+
macroopDict = assembler.assemble(microcode)
decoder_output += mainRom.getDefinition()