mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-17 06:49:25 +00:00
HV: instr_emul: Rearrange logic of instr_emul*
Originally, there is cross-references between instr_emul.h and instr_emul_wrapper.h. User must include both of them when calling instruction emulation functions. This will raise up some confusion and inconvenience. So we rearrange the logic of instruction emulation code as following: - External API -- defined in instr_emul.h * decode_instruction(struct vcpu *vcpu) * emulate_instruction(struct vcpu *vcpu) - Make all other functions as static in instr_emul.c - Remove instr_emul_wrapper.c/h No functional change. Signed-off-by: Kaige Fu <kaige.fu@intel.com> Reviewed-by: Eddie Dong <eddie.dong@intel.com> Reviewed-by: Yin Fengwei <fengwei.yin@intel.com>
This commit is contained in:
@@ -139,7 +139,6 @@ C_SRCS += arch/x86/pm.c
|
||||
S_SRCS += arch/x86/wakeup.S
|
||||
C_SRCS += arch/x86/guest/vcpu.c
|
||||
C_SRCS += arch/x86/guest/vm.c
|
||||
C_SRCS += arch/x86/guest/instr_emul_wrapper.c
|
||||
C_SRCS += arch/x86/guest/vlapic.c
|
||||
C_SRCS += arch/x86/guest/guest.c
|
||||
C_SRCS += arch/x86/guest/vmcall.c
|
||||
|
Reference in New Issue
Block a user