Commit 8ef9a8ece3aa8c92eccf998aaac5f38d74acb757
1 parent
fc01f7e7
added nop operations
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@292 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
15 additions
and
0 deletions
dyngen.c
| ... | ... | @@ -1200,6 +1200,10 @@ int load_elf(const char *filename, FILE *outfile, int out_type) |
| 1200 | 1200 | } |
| 1201 | 1201 | |
| 1202 | 1202 | if (out_type == OUT_INDEX_OP) { |
| 1203 | + fprintf(outfile, "DEF(nop1, 0, 0)\n"); | |
| 1204 | + fprintf(outfile, "DEF(nop2, 0, 0)\n"); | |
| 1205 | + fprintf(outfile, "DEF(nop3, 0, 0)\n"); | |
| 1206 | + fprintf(outfile, "DEF(nop, 0, 0)\n"); | |
| 1203 | 1207 | fprintf(outfile, "DEF(end, 0, 0)\n"); |
| 1204 | 1208 | for(i = 0, sym = symtab; i < nb_syms; i++, sym++) { |
| 1205 | 1209 | const char *name, *p; |
| ... | ... | @@ -1270,6 +1274,17 @@ fprintf(outfile, |
| 1270 | 1274 | } |
| 1271 | 1275 | |
| 1272 | 1276 | fprintf(outfile, |
| 1277 | +" case INDEX_op_nop:\n" | |
| 1278 | +" break;\n" | |
| 1279 | +" case INDEX_op_nop1:\n" | |
| 1280 | +" opparam_ptr++;\n" | |
| 1281 | +" break;\n" | |
| 1282 | +" case INDEX_op_nop2:\n" | |
| 1283 | +" opparam_ptr += 2;\n" | |
| 1284 | +" break;\n" | |
| 1285 | +" case INDEX_op_nop3:\n" | |
| 1286 | +" opparam_ptr += 3;\n" | |
| 1287 | +" break;\n" | |
| 1273 | 1288 | " default:\n" |
| 1274 | 1289 | " goto the_end;\n" |
| 1275 | 1290 | " }\n"); | ... | ... |