mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-20 04:33:55 +00:00
instr_emul: remove unnecessary params in __decode_instruction
removed unused vcpu & gla params Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com>
This commit is contained in:
parent
570aef648a
commit
0d6218f980
@ -2135,8 +2135,7 @@ decode_moffset(struct vie *vie)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
__decode_instruction(__unused struct vcpu *vcpu, __unused uint64_t gla,
|
__decode_instruction(enum vm_cpu_mode cpu_mode, int cs_d, struct vie *vie)
|
||||||
enum vm_cpu_mode cpu_mode, int cs_d, struct vie *vie)
|
|
||||||
{
|
{
|
||||||
if (decode_prefixes(vie, cpu_mode, cs_d))
|
if (decode_prefixes(vie, cpu_mode, cs_d))
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -86,8 +86,8 @@ int vie_init(struct vie *vie, struct vcpu *vcpu);
|
|||||||
* in VIE_INVALID_GLA instead.
|
* in VIE_INVALID_GLA instead.
|
||||||
*/
|
*/
|
||||||
#define VIE_INVALID_GLA (1UL << 63) /* a non-canonical address */
|
#define VIE_INVALID_GLA (1UL << 63) /* a non-canonical address */
|
||||||
int __decode_instruction(struct vcpu *vcpu, uint64_t gla,
|
int
|
||||||
enum vm_cpu_mode cpu_mode, int csd, struct vie *vie);
|
__decode_instruction(enum vm_cpu_mode cpu_mode, int cs_d, struct vie *vie);
|
||||||
|
|
||||||
int emulate_instruction(struct vcpu *vcpu);
|
int emulate_instruction(struct vcpu *vcpu);
|
||||||
int decode_instruction(struct vcpu *vcpu);
|
int decode_instruction(struct vcpu *vcpu);
|
||||||
|
@ -331,8 +331,8 @@ int decode_instruction(struct vcpu *vcpu)
|
|||||||
csar = exec_vmread(VMX_GUEST_CS_ATTR);
|
csar = exec_vmread(VMX_GUEST_CS_ATTR);
|
||||||
cpu_mode = get_vcpu_mode(vcpu);
|
cpu_mode = get_vcpu_mode(vcpu);
|
||||||
|
|
||||||
retval = __decode_instruction(vcpu, guest_rip_gva,
|
retval = __decode_instruction(cpu_mode, SEG_DESC_DEF32(csar),
|
||||||
cpu_mode, SEG_DESC_DEF32(csar), &emul_cnx->vie);
|
&emul_cnx->vie);
|
||||||
|
|
||||||
if (retval != 0) {
|
if (retval != 0) {
|
||||||
pr_err("decode instruction failed @ 0x%016llx:",
|
pr_err("decode instruction failed @ 0x%016llx:",
|
||||||
|
Loading…
Reference in New Issue
Block a user