qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Aurelien Jarno <aurelien@aurel32.net>
To: Richard Henderson <rth@twiddle.net>
Cc: qemu-devel@nongnu.org
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	[thread overview]
Message-ID: <20131212133349.GA4216@ohm.rr44.fr> (raw)
In-Reply-To: <52A8B7E8.3090907@twiddle.net>

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 <rth@twiddle.net>
> > Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
> > ---
> >  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
aurelien@aurel32.net                 http://www.aurel32.net

      reply	other threads:[~2013-12-12 13:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-11 14:07 [Qemu-devel] [PATCH 1/2] tcg: add TCGMemOp short constants for single byte loads Aurelien Jarno
2013-12-11 14:07 ` [Qemu-devel] [PATCH 2/2] target-mips: Use new qemu_ld/st opcodes Aurelien Jarno
2013-12-11 19:12   ` Richard Henderson
2013-12-11 19:07 ` [Qemu-devel] [PATCH 1/2] tcg: add TCGMemOp short constants for single byte loads Richard Henderson
2013-12-12 13:33   ` Aurelien Jarno [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20131212133349.GA4216@ohm.rr44.fr \
    --to=aurelien@aurel32.net \
    --cc=qemu-devel@nongnu.org \
    --cc=rth@twiddle.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).