diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2003-06-30 10:04:47 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2003-06-30 10:04:47 +0000 |
commit | 8ef9a8ece3aa8c92eccf998aaac5f38d74acb757 (patch) | |
tree | 5e4d3e151988d2ec8a9dc5bd26737b0226e62c94 /dyngen.c | |
parent | fc01f7e7f902ce96d985f44dc16f7c020b94f02b (diff) |
added nop operations
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@292 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'dyngen.c')
-rw-r--r-- | dyngen.c | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -1200,6 +1200,10 @@ int load_elf(const char *filename, FILE *outfile, int out_type) } if (out_type == OUT_INDEX_OP) { + fprintf(outfile, "DEF(nop1, 0, 0)\n"); + fprintf(outfile, "DEF(nop2, 0, 0)\n"); + fprintf(outfile, "DEF(nop3, 0, 0)\n"); + fprintf(outfile, "DEF(nop, 0, 0)\n"); fprintf(outfile, "DEF(end, 0, 0)\n"); for(i = 0, sym = symtab; i < nb_syms; i++, sym++) { const char *name, *p; @@ -1270,6 +1274,17 @@ fprintf(outfile, } fprintf(outfile, +" case INDEX_op_nop:\n" +" break;\n" +" case INDEX_op_nop1:\n" +" opparam_ptr++;\n" +" break;\n" +" case INDEX_op_nop2:\n" +" opparam_ptr += 2;\n" +" break;\n" +" case INDEX_op_nop3:\n" +" opparam_ptr += 3;\n" +" break;\n" " default:\n" " goto the_end;\n" " }\n"); |