Re: [PATCH v2 6/7] KVM: x86 emulator: add macros for defining 2-operand fastop emulation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 01/04/2013 12:47 PM, Avi Kivity wrote:
> Signed-off-by: Avi Kivity <avi.kivity@xxxxxxxxx>
> ---
>  arch/x86/kvm/emulate.c | 12 ++++++++++++
>  1 file changed, 12 insertions(+)
>
> diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c
> index 09dbdc5..9a39689 100644
> --- a/arch/x86/kvm/emulate.c
> +++ b/arch/x86/kvm/emulate.c
> @@ -465,6 +465,17 @@ static void invalidate_registers(struct x86_emulate_ctxt *ctxt)
>  	ON64(FOP1E(op##q, rax))	\
>  	FOP_END
>  
> +#define FOP2E(op,  dst, src)	   \
> +	FOP_ALIGN #op " %" #dst ", %" #src " \n\t" FOP_RET
> +
>

This can't be right, the operand order is reversed.

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux