Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Yoshinori Sato <ysato@users.sourceforge.jp>
To: Yoshinori Sato <ysato@users.sourceforge.jp>, gdb-patches@sourceware.org
Subject: Re: [PATCH 1/2] sim: h8300 Fixed different behavior in preinc/predec.
Date: Sun, 23 May 2021 22:42:36 +0900	[thread overview]
Message-ID: <87fsyd7eib.wl-ysato@users.sourceforge.jp> (raw)
In-Reply-To: <YKg3HOVM0NBWmqIO@vapier>

On Sat, 22 May 2021 07:41:32 +0900,
Mike Frysinger wrote:
> 
> On 21 May 2021 23:16, Yoshinori Sato wrote:
> > Fixed some addressing modes not working properly on the h8300.
> > I have confirmed in the test case that the result is
> > the same as the actual CPU.
> 
> are there testcases that cover this behavior ?  if not, can you add some ?

Yes. 2/2 changes include this case.

> > --- a/sim/h8300/compile.c
> > +++ b/sim/h8300/compile.c
> > @@ -1098,6 +1098,35 @@ decode (SIM_DESC sd, int addr, unsigned char *data, decoded_inst *dst)
> >  		      /* End of Processing for system calls.  */
> >  		    }
> >  
> > +		  /* Use same register is specified for source
> > +		     and destination.
> > +		     the value of source will be the value after
> 
> "The"
> 
> > +		     address calculation. */
> 
> two spaces after .
> 
> > +		  if (OP_KIND(dst->opcode) != O_CMP &&
> > +		      OP_KIND(dst->src.type) == OP_REG &&
> > +		      (dst->src.reg & 7) == dst->dst.reg) {
> > +		    switch (OP_KIND(dst->dst.type))
> > +		      {
> > +		      case OP_POSTDEC:
> > +			dst->src.type = X(OP_REG_DEC,
> > +					  OP_SIZE(dst->dst.type));
> 
> should put a space before the ( in all these
> -mike

OK.
I will fix.

Thanks.

-- 
Yosinori Sato

  reply	other threads:[~2021-05-23 13:42 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-21 14:16 Yoshinori Sato
2021-05-21 14:16 ` [PATCH 2/2] sim: h8300 add special case test Yoshinori Sato
2021-05-21 15:03 ` [PATCH RESEND " Yoshinori Sato
2021-05-21 22:41   ` Mike Frysinger via Gdb-patches
2021-05-21 22:41 ` [PATCH 1/2] sim: h8300 Fixed different behavior in preinc/predec Mike Frysinger via Gdb-patches
2021-05-23 13:42   ` Yoshinori Sato [this message]
2021-05-25 14:10 ` [PATCH v2 " Yoshinori Sato
2021-05-25 14:10   ` [PATCH v2 2/2] sim: h8300 add special case test Yoshinori Sato
2021-05-25 23:10     ` Mike Frysinger via Gdb-patches
2021-05-25 23:09   ` [PATCH v2 1/2] sim: h8300 Fixed different behavior in preinc/predec Mike Frysinger via Gdb-patches
2021-05-26 11:52 ` [PATCH v3 " Yoshinori Sato
2021-05-26 11:52   ` [PATCH v3 2/2] sim: h8300 add special case test Yoshinori Sato
2021-05-26 20:23   ` [PATCH v3 1/2] sim: h8300 Fixed different behavior in preinc/predec Mike Frysinger via Gdb-patches

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=87fsyd7eib.wl-ysato@users.sourceforge.jp \
    --to=ysato@users.sourceforge.jp \
    --cc=gdb-patches@sourceware.org \
    /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