This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFA: RL78: Fix simulation of G13 multiply/divide peripheral
- From: Nicholas Clifton <nickc at redhat dot com>
- To: dj at redhat dot com, gdb-patches at sourceware dot org
- Date: Mon, 23 Mar 2015 11:42:51 +0000
- Subject: Re: RFA: RL78: Fix simulation of G13 multiply/divide peripheral
- Authentication-results: sourceware.org; auth=none
- References: <87fv91nfy3 dot fsf at redhat dot com> <20150323081833 dot GC8039 at 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