X86: Decode the mysterious and elusive ffreep x87 instruction.
The internet says this instruction was created by accident when an Intel CPU failed to decode x87 instructions properly. It's been documented on a few rare occasions and has generally worked to ensure backwards compatability. One source claims that the gcc toolchain is basically the only thing that emits it, and that emulators/binary translators like qemu and bochs implement it. We won't actually implement it here since we're hardly implementing any other x87 instructions either. If we were to implement it, it would behave the same as ffree but then also pop the register stack. http://www.pagetable.com/?p=16
This commit is contained in:
parent
579c5f0b65
commit
8966312785
1 changed files with 3 additions and 1 deletions
|
@ -291,7 +291,9 @@ format WarnUnimpl {
|
|||
//0x7: esc7();
|
||||
0x7: decode MODRM_REG {
|
||||
0x0: decode MODRM_MOD {
|
||||
0x3: Inst::UD2();
|
||||
// The ffreep instruction isn't entirely real. It should work
|
||||
// the same as ffree but then also pop the register stack.
|
||||
0x3: ffreep();
|
||||
default: fild();
|
||||
}
|
||||
0x1: decode MODRM_MOD {
|
||||
|
|
Loading…
Reference in a new issue