mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-03-20 07:58:55 +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:
parent
ead8453120
commit
e2c81f9ed8
@ -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 {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user