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
1 changed files with 12 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue