[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: |
Aurelien Jarno |
Subject: |
Re: [Qemu-devel] [PATCH 1/2] tcg: add TCGMemOp short constants for single byte loads |
Date: |
Thu, 12 Dec 2013 14:33:49 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Wed, Dec 11, 2013 at 11:07:20AM -0800, Richard Henderson wrote:
> 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.
Indeed adding this is useless. That said a common problem with this
short MO aliases is that there is no consistency in the naming, on one
side with the endianness for bytes, and on the other side with the
signedness for quad words. The same way, if we wan to use MO aliases for
the stores, we end-up specifying a useless endianness.
Anyway I'll drop that for now and submit a new version of the MIPS
patch.
--
Aurelien Jarno GPG: 1024D/F1BCDB73
address@hidden http://www.aurel32.net