public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Alan Modra <amodra@gmail.com>
To: Sam James <sam@gentoo.org>
Cc: Tom Tromey <tom@tromey.com>,
	aburgess@redhat.com, gdb-patches@sourceware.org
Subject: Re: sim regen preparation
Date: Wed, 16 Aug 2023 22:50:19 +0930	[thread overview]
Message-ID: <ZNzNExnhzrM0GrLu@squeak.grove.modra.org> (raw)
In-Reply-To: <87y1iby78s.fsf@gentoo.org>

On Wed, Aug 16, 2023 at 04:51:13AM +0100, Sam James wrote:
> 
> Alan Modra via Gdb-patches <gdb-patches@sourceware.org> writes:
> 
> > On Mon, Aug 14, 2023 at 10:26:12AM -0600, Tom Tromey wrote:
> > [...]
> >
> > Note that people might have thought they were testing sim, but "make
> > check" in sim doesn't do much unless you set up site-sim-config.exp,
> > or have a lot of AS_FOR_TARGET_$arch, LD_FOR_TARGET_$arch and
> > CC_FOR_TARGET_$arch in your environment.  Also, linker warnings render
> > many of the tests "UNTESTED".  Only the latter is fixed, and of course
> > only for current warnings.
> 
> This sounds like something we should probably dump into the wiki at some
> point.

And to clarify a little, my comment applies to --enable-targets=all.
If you are building a specific sim, eg. --target=frv-elf, then the sim
test harness will look for frv-elf-as, frv-elf-ld and use those if
found on $PATH.

BTW, I found the commit responsible for those 155 frv fails.  Fixed as
follows.  I'll commit as obvious tomorrow unless someone nacks it.

----
Re: sim frv: Add a missing return value for frvbf_check_acc_range.

Commit f00b50d057 went the wrong way.  As the comment says this
function is only applicable to fr550.  If not fr550 return 1,
meaning we don't have acc restrictions.

diff --git a/sim/frv/traps.c b/sim/frv/traps.c
index dda066faec3..aee1f0e741a 100644
--- a/sim/frv/traps.c
+++ b/sim/frv/traps.c
@@ -747,7 +747,7 @@ frvbf_check_acc_range (SIM_CPU *current_cpu, SI regno)
   /* Only applicable to fr550 */
   SIM_DESC sd = CPU_STATE (current_cpu);
   if (STATE_ARCHITECTURE (sd)->mach != bfd_mach_fr550)
-    return 0;
+    return 1;
 
   /* On the fr550, media insns in slots 0 and 2 can only access
      accumulators acc0-acc3. Insns in slots 1 and 3 can only access

-- 
Alan Modra
Australia Development Lab, IBM

  reply	other threads:[~2023-08-16 13:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-14 11:58 Alan Modra
2023-08-14 16:26 ` Tom Tromey
2023-08-16  3:07   ` Alan Modra
2023-08-16  3:51     ` Sam James
2023-08-16 13:20       ` Alan Modra [this message]
2023-08-16 17:47     ` Tom Tromey

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=ZNzNExnhzrM0GrLu@squeak.grove.modra.org \
    --to=amodra@gmail.com \
    --cc=aburgess@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=sam@gentoo.org \
    --cc=tom@tromey.com \
    /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 read-only IMAP folder(s) and NNTP newsgroup(s).