This is the mail archive of the mailing list for the GDB project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFA: RL78: Fix simulation of G13 multiply/divide peripheral

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:


2015-03-23  Nick Clifton  <>

	* 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;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]