X86: Implement sysenter as a system call interface.
authorGabe Black <gblack@eecs.umich.edu>
Fri, 27 Feb 2009 17:25:43 +0000 (09:25 -0800)
committerGabe Black <gblack@eecs.umich.edu>
Fri, 27 Feb 2009 17:25:43 +0000 (09:25 -0800)
src/arch/x86/isa/decoder/two_byte_opcodes.isa

index 64920bcbdcc8ab45a77770187586490d5e5be815..c3fb5c19d600e7e013be2dc1f265f0345c09d906 100644 (file)
                 0x1: Inst::RDTSC();
                 0x2: Inst::RDMSR();
                 0x3: rdpmc();
+#if FULL_SYSTEM
                 0x4: sysenter();
+#else
+                0x4: SyscallInst::sysenter('xc->syscall(Rax)', IsSyscall);
+#endif
                 0x5: sysexit();
                 0x6: Inst::UD2();
                 0x7: getsec();