RFA: RL78: Fix simulation of G13 multiply/divide peripheral
Commit Message
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.
@@ -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
@@ -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