X86: Implement the int system call interface in the decoder.

This commit is contained in:
Gabe Black
2009-02-27 09:21:58 -08:00
parent 05de9f4e2c
commit 60aab03e85

View File

@@ -418,7 +418,18 @@
default: Inst::RET_FAR();
}
0x4: int3();
#if FULL_SYSTEM
0x5: int_Ib();
#else
// Really only the LSB matters, but the predecoder will sign
// extend it, and there's no easy way to specify only checking
// the first byte.
0x5: decode IMMEDIATE {
0xffffffffffffff80:
SyscallInst::int80('xc->syscall(Rax)', IsSyscall);
default: int_Ib();
}
#endif
0x6: decode MODE_SUBMODE {
0x0: Inst::UD2();
default: into();