Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Mike Frysinger via Gdb-patches <gdb-patches@sourceware.org>
To: Yoshinori Sato <ysato@users.sourceforge.jp>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH 1/2] sim: h8300 Fixed different behavior in preinc/predec.
Date: Fri, 21 May 2021 18:41:32 -0400	[thread overview]
Message-ID: <YKg3HOVM0NBWmqIO@vapier> (raw)
In-Reply-To: <20210521141655.68398-1-ysato@users.sourceforge.jp>

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 ?

> --- 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

  parent reply	other threads:[~2021-05-21 22:41 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 ` Mike Frysinger via Gdb-patches [this message]
2021-05-23 13:42   ` [PATCH 1/2] sim: h8300 Fixed different behavior in preinc/predec Yoshinori Sato
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=YKg3HOVM0NBWmqIO@vapier \
    --to=gdb-patches@sourceware.org \
    --cc=vapier@gentoo.org \
    --cc=ysato@users.sourceforge.jp \
    /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