Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Oleg Endo <olegendo1024@gmail.com>
To: gdb-patches@sourceware.org
Subject: Ping^1  Re: [SH] Fix mac.w insn simulation for SH2 and above
Date: Mon, 24 Aug 2026 20:03:41 +0900	[thread overview]
Message-ID: <8fc2ea33c1887e63c5b87edfdadbd0fbd1192f9b.camel@gmail.com> (raw)
In-Reply-To: <ea983e6d997f4d793fa7486b363a66b2345a1bb5.camel@gmail.com>

Ping

On Sun, 2026-08-02 at 22:53 +0900, Oleg Endo wrote:
> Hi,
> 
> The simulator currently implements only the SH1 version of the mac.w
> instruction.  On SH1 the MACH:MACL accumulator register is only 42-bit.  It
> was extended to 64-bit on SH2 and every variant that followed after.
> 
> The issue probably never showed up because GCC hasn't been able to emit the
> SH integer mac instructions.  I ran into this because I was trying to do
> exactly that and while running some tests on sh-sim.
> 
> The attached patch uses the bfd_mach field to distinguish between SH1 and
> not-SH1 in the simulation of the mac.w instruction, in a similar way as it's
> already been done for some SH2A instructions.
> 
> 
> OK to commit & push?
> 
> Best regards,
> Oleg Endo

  reply	other threads:[~2026-08-24 11:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-02 13:53 Oleg Endo
2026-08-24 11:03 ` Oleg Endo [this message]
2026-08-24 12:09 ` Andrew Burgess
2026-08-25  0:55   ` Oleg Endo

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=8fc2ea33c1887e63c5b87edfdadbd0fbd1192f9b.camel@gmail.com \
    --to=olegendo1024@gmail.com \
    --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