mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
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:
@@ -164,6 +164,18 @@ macro_rules! imm_op {
|
|||||||
(u32tou64, $insn:ident) => {
|
(u32tou64, $insn:ident) => {
|
||||||
$insn.immediate32to64()
|
$insn.immediate32to64()
|
||||||
};
|
};
|
||||||
|
|
||||||
|
(u8tou16, $insn:ident) => {
|
||||||
|
$insn.immediate8to16()
|
||||||
|
};
|
||||||
|
|
||||||
|
(u8tou32, $insn:ident) => {
|
||||||
|
$insn.immediate8to32()
|
||||||
|
};
|
||||||
|
|
||||||
|
(u8tou64, $insn:ident) => {
|
||||||
|
$insn.immediate8to64()
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct Mov_r8_rm8 {}
|
pub struct Mov_r8_rm8 {}
|
||||||
|
|||||||
Reference in New Issue
Block a user