From c4212d37ab10c86622934e258c9c6ce0e2035bda Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 1 Dec 2008 16:10:45 +0000 Subject: [PATCH] 2008-12-01 Joel Sherrill * compile.c: Add const to remove warning. --- sim/h8300/ChangeLog | 4 ++++ sim/h8300/compile.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/sim/h8300/ChangeLog b/sim/h8300/ChangeLog index d0b6f466675..d0b0726b3bb 100644 --- a/sim/h8300/ChangeLog +++ b/sim/h8300/ChangeLog @@ -1,3 +1,7 @@ +2008-12-01 Joel Sherrill + + * compile.c: Add const to remove warning. + 2008-07-11 Hans-Peter Nilsson * configure: Regenerate to track ../common/common.m4 changes. diff --git a/sim/h8300/compile.c b/sim/h8300/compile.c index 34cb057db3f..a7e2694e335 100644 --- a/sim/h8300/compile.c +++ b/sim/h8300/compile.c @@ -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; -- 2.30.2