KVM: Trivial: Make decode_register() static
I have shied away from touching x86_emulate.c (it could definitely use some love, but it is forked from the Xen code, and it would be more productive to cross-merge fixes). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Avi Kivity <avi@qumranet.com>
This commit is contained in:
committed by
Avi Kivity
parent
5eb549a085
commit
1e3c5cb0d5
@ -443,8 +443,13 @@ struct operand {
|
||||
(((reg) + _inc) & ((1UL << (ad_bytes << 3)) - 1)); \
|
||||
} while (0)
|
||||
|
||||
void *decode_register(u8 modrm_reg, unsigned long *regs,
|
||||
int highbyte_regs)
|
||||
/*
|
||||
* Given the 'reg' portion of a ModRM byte, and a register block, return a
|
||||
* pointer into the block that addresses the relevant register.
|
||||
* @highbyte_regs specifies whether to decode AH,CH,DH,BH.
|
||||
*/
|
||||
static void *decode_register(u8 modrm_reg, unsigned long *regs,
|
||||
int highbyte_regs)
|
||||
{
|
||||
void *p;
|
||||
|
||||
|
Reference in New Issue
Block a user