Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Nicholas Clifton <nickc@redhat.com>
To: dj@redhat.com, gdb-patches@sourceware.org
Subject: Re: RFA: RL78: Fix simulation of G13 multiply/divide peripheral
Date: Mon, 23 Mar 2015 11:42:00 -0000	[thread overview]
Message-ID: <550FFC3B.8030901@redhat.com> (raw)
In-Reply-To: <20150323081833.GC8039@vapier>

Hi Mike,

> did you forgot to commit some other change ?  rl78 fails to build now:

> ../../../../sim/rl78/load.c:95:3: error: 'rl78_g10_mode' undeclared (first use
> in this function)

*doh*.  Yes I did.  Sorry about that.  Fixed with this patch:

Cheers
   Nick

sim/rl78/ChangeLog
2015-03-23  Nick Clifton  <nickc@redhat.com>

	* cpu.c (rl78_g10_mode): Declare.
	(g13_multiply): Declare.
	* cpu.h (rl78_g10_mode): Export.
	(g13_multiply): Export.

diff --git a/sim/rl78/cpu.c b/sim/rl78/cpu.c
index a5056fc..32b1399 100644
--- a/sim/rl78/cpu.c
+++ b/sim/rl78/cpu.c
@@ -32,6 +32,8 @@ int verbose = 0;
  int trace = 0;
  int rl78_in_gdb = 1;
  int timer_enabled = 2;
+int rl78_g10_mode = 0;
+int g13_multiply = 0;

  #define REGISTER_ADDRESS 0xffee0

diff --git a/sim/rl78/cpu.h b/sim/rl78/cpu.h
index e2457bb..0e10db9 100644
--- a/sim/rl78/cpu.h
+++ b/sim/rl78/cpu.h
@@ -97,4 +97,7 @@ extern int timer_enabled;
  extern void dump_counts_per_insn (const char * filename);
  extern unsigned int counts_per_insn[0x100000];

+extern int rl78_g10_mode;
+extern int g13_multiply;
+
  #endif


      reply	other threads:[~2015-03-23 11:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-19 15:51 Nick Clifton
2015-03-19 15:56 ` DJ Delorie
2015-03-19 18:42 ` Mike Frysinger
2015-03-20 10:28   ` Nicholas Clifton
2015-03-20 15:40     ` Mike Frysinger
2015-03-23  8:19 ` Mike Frysinger
2015-03-23 11:42   ` Nicholas Clifton [this message]

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=550FFC3B.8030901@redhat.com \
    --to=nickc@redhat.com \
    --cc=dj@redhat.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