Commit 7a786a46b0185f0d7bb5fec71f145c8b858ca3c7

Authored by blueswir1
1 parent c7cd6a37

Make some i386 disassembler tables const

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5398 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 22 additions and 22 deletions
i386-dis.c
... ... @@ -1131,63 +1131,63 @@ static unsigned char need_modrm;
1131 1131 need to update onebyte_has_modrm or twobyte_has_modrm. */
1132 1132 #define MODRM_CHECK if (!need_modrm) abort ()
1133 1133  
1134   -static const char **names64;
1135   -static const char **names32;
1136   -static const char **names16;
1137   -static const char **names8;
1138   -static const char **names8rex;
1139   -static const char **names_seg;
1140   -static const char **index16;
1141   -
1142   -static const char *intel_names64[] = {
  1134 +static const char * const *names64;
  1135 +static const char * const *names32;
  1136 +static const char * const *names16;
  1137 +static const char * const *names8;
  1138 +static const char * const *names8rex;
  1139 +static const char * const *names_seg;
  1140 +static const char * const *index16;
  1141 +
  1142 +static const char * const intel_names64[] = {
1143 1143 "rax", "rcx", "rdx", "rbx", "rsp", "rbp", "rsi", "rdi",
1144 1144 "r8", "r9", "r10", "r11", "r12", "r13", "r14", "r15"
1145 1145 };
1146   -static const char *intel_names32[] = {
  1146 +static const char * const intel_names32[] = {
1147 1147 "eax", "ecx", "edx", "ebx", "esp", "ebp", "esi", "edi",
1148 1148 "r8d", "r9d", "r10d", "r11d", "r12d", "r13d", "r14d", "r15d"
1149 1149 };
1150   -static const char *intel_names16[] = {
  1150 +static const char * const intel_names16[] = {
1151 1151 "ax", "cx", "dx", "bx", "sp", "bp", "si", "di",
1152 1152 "r8w", "r9w", "r10w", "r11w", "r12w", "r13w", "r14w", "r15w"
1153 1153 };
1154   -static const char *intel_names8[] = {
  1154 +static const char * const intel_names8[] = {
1155 1155 "al", "cl", "dl", "bl", "ah", "ch", "dh", "bh",
1156 1156 };
1157   -static const char *intel_names8rex[] = {
  1157 +static const char * const intel_names8rex[] = {
1158 1158 "al", "cl", "dl", "bl", "spl", "bpl", "sil", "dil",
1159 1159 "r8b", "r9b", "r10b", "r11b", "r12b", "r13b", "r14b", "r15b"
1160 1160 };
1161   -static const char *intel_names_seg[] = {
  1161 +static const char * const intel_names_seg[] = {
1162 1162 "es", "cs", "ss", "ds", "fs", "gs", "?", "?",
1163 1163 };
1164   -static const char *intel_index16[] = {
  1164 +static const char * const intel_index16[] = {
1165 1165 "bx+si", "bx+di", "bp+si", "bp+di", "si", "di", "bp", "bx"
1166 1166 };
1167 1167  
1168   -static const char *att_names64[] = {
  1168 +static const char * const att_names64[] = {
1169 1169 "%rax", "%rcx", "%rdx", "%rbx", "%rsp", "%rbp", "%rsi", "%rdi",
1170 1170 "%r8", "%r9", "%r10", "%r11", "%r12", "%r13", "%r14", "%r15"
1171 1171 };
1172   -static const char *att_names32[] = {
  1172 +static const char * const att_names32[] = {
1173 1173 "%eax", "%ecx", "%edx", "%ebx", "%esp", "%ebp", "%esi", "%edi",
1174 1174 "%r8d", "%r9d", "%r10d", "%r11d", "%r12d", "%r13d", "%r14d", "%r15d"
1175 1175 };
1176   -static const char *att_names16[] = {
  1176 +static const char * const att_names16[] = {
1177 1177 "%ax", "%cx", "%dx", "%bx", "%sp", "%bp", "%si", "%di",
1178 1178 "%r8w", "%r9w", "%r10w", "%r11w", "%r12w", "%r13w", "%r14w", "%r15w"
1179 1179 };
1180   -static const char *att_names8[] = {
  1180 +static const char * const att_names8[] = {
1181 1181 "%al", "%cl", "%dl", "%bl", "%ah", "%ch", "%dh", "%bh",
1182 1182 };
1183   -static const char *att_names8rex[] = {
  1183 +static const char * const att_names8rex[] = {
1184 1184 "%al", "%cl", "%dl", "%bl", "%spl", "%bpl", "%sil", "%dil",
1185 1185 "%r8b", "%r9b", "%r10b", "%r11b", "%r12b", "%r13b", "%r14b", "%r15b"
1186 1186 };
1187   -static const char *att_names_seg[] = {
  1187 +static const char * const att_names_seg[] = {
1188 1188 "%es", "%cs", "%ss", "%ds", "%fs", "%gs", "%?", "%?",
1189 1189 };
1190   -static const char *att_index16[] = {
  1190 +static const char * const att_index16[] = {
1191 1191 "%bx,%si", "%bx,%di", "%bp,%si", "%bp,%di", "%si", "%di", "%bp", "%bx"
1192 1192 };
1193 1193  
... ...