sim: v850: fix build failure after watchpoint constification
authorMike Frysinger <vapier@gentoo.org>
Tue, 30 Mar 2010 23:43:03 +0000 (23:43 +0000)
committerMike Frysinger <vapier@gentoo.org>
Tue, 30 Mar 2010 23:43:03 +0000 (23:43 +0000)
sim/v850/ChangeLog
sim/v850/interp.c

index 0e01705044b95044948cfd22c82e3fdb564d78fe..4d43d3e6492e8e488b25da7dbc0fcd0af93bcb19 100644 (file)
@@ -1,3 +1,8 @@
+2010-03-30  Mike Frysinger  <vapier@gentoo.org>
+
+       * interp.c (interrupt_names): Add const to pointer type.
+       (do_interrupt): Add const to interrupt_name.
+
 2010-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * configure: Regenerate.
index 1ca248ca3e9864226397753ce0fa18ae86657834..e8bea5f6752d9624300092d92995fb902da1f5de 100644 (file)
@@ -48,7 +48,7 @@ enum interrupt_type
   num_int_types
 };
 
-char *interrupt_names[] = {
+const char *interrupt_names[] = {
   "reset",
   "nmi",
   "intov1",
@@ -65,7 +65,7 @@ do_interrupt (sd, data)
      SIM_DESC sd;
      void *data;
 {
-  char **interrupt_name = (char**)data;
+  const char **interrupt_name = (const char**)data;
   enum interrupt_type inttype;
   inttype = (interrupt_name - STATE_WATCHPOINTS (sd)->interrupt_names);