]> git.proxmox.com Git - mirror_qemu.git/commitdiff
added nop operations
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 30 Jun 2003 10:04:47 +0000 (10:04 +0000)
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 30 Jun 2003 10:04:47 +0000 (10:04 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@292 c046a42c-6fe2-441c-8c8c-71466251a162

dyngen.c

index 0266196ad69ec28b850aa446235a3593b24ffe99..3e846232b425ad3b2838b96ff0a0e3b683c6da82 100644 (file)
--- a/dyngen.c
+++ b/dyngen.c
@@ -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");