public inbox for cgen@sourceware.org
 help / color / mirror / Atom feed
From: Dave Korn <dave.korn.cygwin@googlemail.com>
To: cgen@sourceware.org
Subject: [patch] One more cpu-vs-prefix fix.
Date: Tue, 29 Sep 2009 03:45:00 -0000	[thread overview]
Message-ID: <4AC18628.9060202@gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1205 bytes --]


  Hiya!  I found one more place that looks to me like it should be using
@prefix@ instead of @cpu@, since that's how all the rest of the code generates
the "XXX_init_idesc_table" name.

  I haven't tested this much yet except that it fixes a discrepancy between
the prototype generated in the decode.h and the function call in the mloop.c
files for the private port I'm working on.  I think that sh64 is the only
target where there actually is any difference between @prefix@ and @cpu@ in
practice, so I tried regenerating it and it seemed to compile ok, or at any
rate without any missing or duplicated symbols.  I couldn't get the tests to
run, they all fail with an error that suggests the testsuite is attempting to
run target binaries on the host machine:

> spawn /sgun/tools/obj.sh64/ld/ld-new andb.cgs.o -m shelf32 -o andb.cgs.x
>      andb.cgs.x
> spawn andb.cgs.x
> andb.cgs.x: andb.cgs.x: cannot execute binary file
> FAIL: sh5 andb.cgs (execution)
> Testing andi.cgs on machine sh5.

  So whatever that is, I'd guess it's not related.  Here's a changelog entry,
if you want the patch:

cgen/ChangeLog:

	* sim-model.scm (@cpu@_prepare_run): Use @prefix@, not @cpu@.

    cheers,
      DaveK


[-- Attachment #2: init-idesc-table-prefix.diff --]
[-- Type: text/x-c, Size: 375 bytes --]

Index: cgen/sim-model.scm
===================================================================
--- cgen/sim-model.scm	(revision 171)
+++ cgen/sim-model.scm	(working copy)
@@ -305,7 +305,7 @@ static void
 @cpu@_prepare_run (SIM_CPU *cpu)
 {
   if (CPU_IDESC (cpu) == NULL)
-    @cpu@_init_idesc_table (cpu);
+    @prefix@_init_idesc_table (cpu);
 }
 
 static const CGEN_INSN *

             reply	other threads:[~2009-09-29  3:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-29  3:45 Dave Korn [this message]
2009-10-05 18:04 ` Doug Evans

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=4AC18628.9060202@gmail.com \
    --to=dave.korn.cygwin@googlemail.com \
    --cc=cgen@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).