diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2008-12-01 16:10:45 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2008-12-01 16:10:45 +0000 |
commit | c4212d37ab10c86622934e258c9c6ce0e2035bda (patch) | |
tree | f13a34a9724331f3f2b274b6357a66d14eb5f15a /sim/h8300/compile.c | |
parent | b76dfd93dd0ba1b7cf6432883294fbab98efb9ee (diff) | |
download | gdb-c4212d37ab10c86622934e258c9c6ce0e2035bda.zip gdb-c4212d37ab10c86622934e258c9c6ce0e2035bda.tar.gz gdb-c4212d37ab10c86622934e258c9c6ce0e2035bda.tar.bz2 |
2008-12-01 Joel Sherrill <joel.sherrill@oarcorp.com>
* compile.c: Add const to remove warning.
Diffstat (limited to 'sim/h8300/compile.c')
-rw-r--r-- | sim/h8300/compile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/h8300/compile.c b/sim/h8300/compile.c index 34cb057..a7e2694 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; |