qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 4/5] tcg/i386: use movbe instruction in qemu_lds


From: Richard Henderson
Subject: Re: [Qemu-devel] [PATCH 4/5] tcg/i386: use movbe instruction in qemu_ldst routines
Date: Sun, 22 Dec 2013 08:52:58 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

On 12/21/2013 08:43 AM, Aurelien Jarno wrote:
> +/* If bit_MOVBE is defined in cpuid.h (added in GCC version 4.6), we are
> +   going to attempt to determine at runtime whether movbe is available.  */
> +#if defined(CONFIG_CPUID_H) && defined(bit_MOVBE)
> +static bool have_movbe;
> +#else
> +# define have_movbe 0
> +#endif
> +

Good point about checking bit_MOVBE, I missed that in my version.

I do slightly prefer hoisting the mov opcode, as I do in my version.
I think that tidies the 32 and 64-bit paths a bit.  Nothing can really help
adding extra conditionals to the 16-bit load paths though.


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]