X86: Implement STMXCSR.

This commit is contained in:
Gabe Black 2009-08-17 20:25:13 -07:00
parent 7fbd9e1296
commit b315c3effc
2 changed files with 11 additions and 2 deletions

View file

@ -829,7 +829,7 @@
0x0: fxsave(); 0x0: fxsave();
0x1: fxrstor(); 0x1: fxrstor();
0x2: ldmxcsr(); 0x2: ldmxcsr();
0x3: stmxcsr(); 0x3: Inst::STMXCSR(Md);
0x4: Inst::UD2(); 0x4: Inst::UD2();
0x5: decode MODRM_MOD { 0x5: decode MODRM_MOD {
0x3: BasicOperate::LFENCE( 0x3: BasicOperate::LFENCE(

View file

@ -54,6 +54,15 @@
# Authors: Gabe Black # Authors: Gabe Black
microcode = ''' microcode = '''
# STMXCSR def macroop STMXCSR_M {
rdval t1, "InstRegIndex(MISCREG_MXCSR)"
st t1, seg, sib, disp
};
def macroop STMXCSR_P {
rdval t1, "InstRegIndex(MISCREG_MXCSR)"
rdip t7
st t1, seg, riprel, disp
};
# LDMXCSR # LDMXCSR
''' '''