mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-06 11:19:09 +00:00
Add the following functions:
- SYSCALL (normal fast system call instruction) [0f 05] - SYSENTER (system call entry instruction) [0f 34] - SYSEXIT (system call exit instruction) [0f 35] - SYSEXIT64 (system call exit instruction to 64-bit user code) [REX.W 0f 35] - SYSRET (system call return instruction) [0f 07] Patch by Sean Callanan. llvm-svn: 76528
This commit is contained in:
parent
f2c6e6a1bd
commit
50e5f4884a
@ -245,6 +245,18 @@ let Defs = [RCX,RDI], Uses = [RAX,RCX,RDI] in
|
||||
def REP_STOSQ : RI<0xAB, RawFrm, (outs), (ins), "{rep;stosq|rep stosq}",
|
||||
[(X86rep_stos i64)]>, REP;
|
||||
|
||||
// Fast system-call instructions
|
||||
def SYSCALL : I<0x05, RawFrm,
|
||||
(outs), (ins), "syscall", []>, TB;
|
||||
def SYSENTER : I<0x34, RawFrm,
|
||||
(outs), (ins), "sysenter", []>, TB;
|
||||
def SYSEXIT : I<0x35, RawFrm,
|
||||
(outs), (ins), "sysexit", []>, TB;
|
||||
def SYSEXIT64 : RI<0x35, RawFrm,
|
||||
(outs), (ins), "sysexit", []>, TB;
|
||||
def SYSRET : I<0x07, RawFrm,
|
||||
(outs), (ins), "sysret", []>, TB;
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// Move Instructions...
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user