[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 1/2] tcg: add TCGMemOp short constants for singl
From: |
Richard Henderson |
Subject: |
Re: [Qemu-devel] [PATCH 1/2] tcg: add TCGMemOp short constants for single byte loads |
Date: |
Wed, 11 Dec 2013 11:07:20 -0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 |
On 12/11/2013 06:07 AM, Aurelien Jarno wrote:
> Cc: Richard Henderson <address@hidden>
> Signed-off-by: Aurelien Jarno <address@hidden>
> ---
> tcg/tcg.h | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/tcg/tcg.h b/tcg/tcg.h
> index 0d9bd29..c83d625 100644
> --- a/tcg/tcg.h
> +++ b/tcg/tcg.h
> @@ -230,20 +230,26 @@ typedef enum TCGMemOp {
> MO_SL = MO_SIGN | MO_32,
> MO_Q = MO_64,
>
> + MO_LEUB = MO_LE | MO_UB,
> MO_LEUW = MO_LE | MO_UW,
> MO_LEUL = MO_LE | MO_UL,
> + MO_LESB = MO_LE | MO_SB,
> MO_LESW = MO_LE | MO_SW,
> MO_LESL = MO_LE | MO_SL,
> MO_LEQ = MO_LE | MO_Q,
>
If you insist, for token pasting usage. So far I've been using just MO_UB and
MO_SB for in situations where we want a 1-byte memory op, without the XE
prefix, since the endianness doesn't matter.
r~