hypervisor: x86: Extend the imm_op() macro

To support every kind of immediate operands.

Signed-off-by: Wei Liu <liuwe@microsoft.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
Wei Liu 2020-11-30 16:01:51 +01:00 committed by Samuel Ortiz
parent ead8453120
commit e2c81f9ed8

View File

@ -164,6 +164,18 @@ macro_rules! imm_op {
(u32tou64, $insn:ident) => {
$insn.immediate32to64()
};
(u8tou16, $insn:ident) => {
$insn.immediate8to16()
};
(u8tou32, $insn:ident) => {
$insn.immediate8to32()
};
(u8tou64, $insn:ident) => {
$insn.immediate8to64()
};
}
pub struct Mov_r8_rm8 {}