asmkit/x86/features/
SEVES.rs1use crate::x86::assembler::*;
2use crate::x86::operands::*;
3use super::super::opcodes::*;
4use crate::core::emitter::*;
5use crate::core::operand::*;
6
7const NOREG: Operand = Operand::new();
9
10pub trait VmgexitEmitter {
22 fn vmgexit(&mut self);
23}
24
25impl<'a> VmgexitEmitter for Assembler<'a> {
26 fn vmgexit(&mut self) {
27 self.emit(VMGEXIT, &NOREG, &NOREG, &NOREG, &NOREG);
28 }
29}
30
31
32impl<'a> Assembler<'a> {
33 #[inline]
45 pub fn vmgexit(&mut self)
46 where Assembler<'a>: VmgexitEmitter {
47 <Self as VmgexitEmitter>::vmgexit(self);
48 }
49}