2008-12-01 Joel Sherrill <joel.sherrill@oarcorp.com>
authorJoel Sherrill <joel.sherrill@oarcorp.com>
Mon, 1 Dec 2008 16:10:45 +0000 (16:10 +0000)
committerJoel Sherrill <joel.sherrill@oarcorp.com>
Mon, 1 Dec 2008 16:10:45 +0000 (16:10 +0000)
* compile.c: Add const to remove warning.

sim/h8300/ChangeLog
sim/h8300/compile.c

index d0b6f466675787bcb8350fa1ee54f0c3f834a685..d0b0726b3bbb0c49bfcd816e13ddd679e390d89b 100644 (file)
@@ -1,3 +1,7 @@
+2008-12-01  Joel Sherrill <joel.sherrill@oarcorp.com>
+
+       * compile.c: Add const to remove warning.
+
 2008-07-11  Hans-Peter Nilsson  <hp@axis.com>
 
        * configure: Regenerate to track ../common/common.m4 changes.
index 34cb057db3f9ad0fa330cf71f76e8a2b46e522f8..a7e2694e3354defafe76132f3f2c1988f0cd94a7 100644 (file)
@@ -599,7 +599,7 @@ decode (SIM_DESC sd, int addr, unsigned char *data, decoded_inst *dst)
   /* Find the exact opcode/arg combo.  */
   for (q = h8_opcodes; q->name; q++)
     {
-      op_type *nib = q->data.nib;
+      const op_type *nib = q->data.nib;
       unsigned int len = 0;
 
       if ((q->available == AV_H8SX && !h8300sxmode) ||
@@ -924,7 +924,7 @@ decode (SIM_DESC sd, int addr, unsigned char *data, decoded_inst *dst)
 #endif
                  /* Fill in the args.  */
                  {
-                   op_type *args = q->args.nib;
+                   const op_type *args = q->args.nib;
                    int hadone = 0;
                    int nargs;
 
This page took 0.028631 seconds and 4 git commands to generate.