Fix thinko with previous delta to RL78 sim, by adding code to define the G10 and...
authorNick Clifton <nickc@redhat.com>
Mon, 23 Mar 2015 11:40:14 +0000 (11:40 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 23 Mar 2015 11:40:14 +0000 (11:40 +0000)
* cpu.c (rl78_g10_mode): Declare.
(g13_multiply): Declare.
* cpu.h (rl78_g10_mode): Export.
(g13_multiply): Export.

sim/rl78/ChangeLog
sim/rl78/cpu.c
sim/rl78/cpu.h
sim/rl78/load.c

index 018b1ff77d05db58113021099051dd481c25a99e..889c320947ee7c4588757ac61aace4c2ed17bbe0 100644 (file)
@@ -1,3 +1,10 @@
+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.
+
 2015-03-20  Nick Clifton  <nickc@redhat.com>
 
        * load.c (rl78_load): If the G10, G13 or G14 flag bits are set in
index a5056fc2db234292fd2c7ec90c02f66d49332767..32b1399f0ebb1f77200850225b5caf05dab5e898 100644 (file)
@@ -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
 
index e2457bbd642a29596caf68d4bc7f620ee61c156d..0e10db935f42bca7a55de4140445e591b60e50a4 100644 (file)
@@ -46,7 +46,7 @@ extern const char * const reg_names[];
 
 void init_cpu (void);
 void set_flags (int mask, int newbits);
-void set_c (int c);
+void set_c (int);
 int  get_c (void);
 
 const char *bits (int v, int b);
@@ -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
index 8d3a13823e2c09e2169de907f7deab422d1744c5..66d00d3a6caa5a24aeaf9682c92a99ca709aac8a 100644 (file)
@@ -100,7 +100,7 @@ rl78_load (bfd *prog, host_callback *callbacks, const char * const simname)
     case E_FLAG_RL78_G14:
     default:
       break;
-    }  
+    }
 
   for (i = 0; i < num_headers; i++)
     {
This page took 0.026727 seconds and 4 git commands to generate.