summaryrefslogtreecommitdiff
path: root/src/arch/x86/isa/decoder
diff options
context:
space:
mode:
authorNilay Vaish <nilay@cs.wisc.edu>2012-12-30 12:45:50 -0600
committerNilay Vaish <nilay@cs.wisc.edu>2012-12-30 12:45:50 -0600
commite9fa54de58846a8726b9320d6b10809ff65ccecf (patch)
tree2c7682db49684f8ecf9b303d5f781143f0be9f23 /src/arch/x86/isa/decoder
parent23ba6fc5fbaf55b016b5f0c0a852fa135d3f5f55 (diff)
downloadgem5-e9fa54de58846a8726b9320d6b10809ff65ccecf.tar.xz
x86: implement x87 fp instruction fnstsw
This patch implements the fnstsw instruction. The code was originally written by Vince Weaver. Gabe had made some comments about the code, but those were never addressed. This patch addresses those comments.
Diffstat (limited to 'src/arch/x86/isa/decoder')
-rw-r--r--src/arch/x86/isa/decoder/x87.isa6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/arch/x86/isa/decoder/x87.isa b/src/arch/x86/isa/decoder/x87.isa
index 4ed902192..3af68cd54 100644
--- a/src/arch/x86/isa/decoder/x87.isa
+++ b/src/arch/x86/isa/decoder/x87.isa
@@ -112,7 +112,7 @@ format WarnUnimpl {
0x6: fsin();
0x7: fcos();
}
- default: fnstcw_Mw();
+ default: Inst::FNSTCW(Mw);
}
}
//0x2: esc2();
@@ -247,7 +247,7 @@ format WarnUnimpl {
}
0x7: decode MODRM_MOD {
0x3: Inst::UD2();
- default: fnstsw();
+ default: Inst::FNSTSW(Mw);
}
}
//0x6: esc6();
@@ -310,7 +310,7 @@ format WarnUnimpl {
}
0x4: decode MODRM_MOD {
0x3: decode MODRM_RM {
- 0x0: fnstsw();
+ 0x0: Inst::FNSTSW(rAw);
default: Inst::UD2();
}
default: fbld();