diff options
author | marius <marius@FreeBSD.org> | 2009-03-18 23:52:20 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2009-03-18 23:52:20 +0000 |
commit | 292151abc2265dd3686bce477becd71a06241ba3 (patch) | |
tree | 6f37275762849d30fc80d0158a853fd5a6b9fa0c | |
parent | e33dfa4bb15a24ff8e8cc5935568dc766aadd0c9 (diff) | |
download | FreeBSD-src-292151abc2265dd3686bce477becd71a06241ba3.zip FreeBSD-src-292151abc2265dd3686bce477becd71a06241ba3.tar.gz |
Add missing const.
-rw-r--r-- | sys/sparc64/sparc64/db_disasm.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/sparc64/sparc64/db_disasm.c b/sys/sparc64/sparc64/db_disasm.c index 1c244e0..a20219e 100644 --- a/sys/sparc64/sparc64/db_disasm.c +++ b/sys/sparc64/sparc64/db_disasm.c @@ -82,14 +82,14 @@ struct sparc_insn { const char* format; }; -static const char* regs[] = { +static const char *const regs[] = { "g0", "g1", "g2", "g3", "g4", "g5", "g6", "g7", "o0", "o1", "o2", "o3", "o4", "o5", "sp", "o7", "l0", "l1", "l2", "l3", "l4", "l5", "l6", "l7", "i0", "i1", "i2", "i3", "i4", "i5", "fp", "i7" }; -static const char* priv_regs[] = { +static const char *const priv_regs[] = { "tpc", "tnpc", "tstate", "tt", "tick", "tba", "pstate", "tl", "pil", "cwp", "cansave", "canrestore", "cleanwin", "otherwin", "wstate", "fq", @@ -97,18 +97,18 @@ static const char* priv_regs[] = { "", "", "", "", "", "", "", "ver" }; -static const char* state_regs[] = { +static const char *const state_regs[] = { "y", "", "ccr", "asi", "tick", "pc", "fprs", "asr", "", "", "", "", "", "", "", "", "pcr", "pic", "dcr", "gsr", "set_softint", "clr_softint", "softint", "tick_cmpr", "sys_tick", "sys_tick_cmpr", "", "", "", "", "", "", "" }; -static const char* ccodes[] = { +static const char *const ccodes[] = { "fcc0", "fcc1", "fcc2", "fcc3", "icc", "", "xcc", "" }; -static const char* prefetch[] = { +static const char *const prefetch[] = { "n_reads", "one_read", "n_writes", "one_write", "page" }; |