X86: Attach the "DIV" instruction implementation to the decoder.
authorGabe Black <gblack@eecs.umich.edu>
Mon, 30 Jul 2007 22:44:48 +0000 (15:44 -0700)
committerGabe Black <gblack@eecs.umich.edu>
Mon, 30 Jul 2007 22:44:48 +0000 (15:44 -0700)
--HG--
extra : convert_revision : 8aef1c8d1ced2db998ed0d31241cadc17e19eadd

src/arch/x86/isa/decoder/one_byte_opcodes.isa

index 3253c9fec4244e896ffd906301476195cc6492c9..507f75bb8368e7f79c25101003cd726775449575 100644 (file)
                 0x3: Inst::NEG(Eb);
                 0x4: Inst::MUL_B(Eb);
                 0x5: Inst::IMUL_B(Eb);
-                0x6: div_Eb();
+                //This should be Eb, but it access the entire word value ax.
+                0x6: Inst::DIV_B(Ew);
                 0x7: idiv_Eb();
             }
             //0x7: group3_Ev();
                 0x3: Inst::NEG(Ev);
                 0x4: Inst::MUL(Ev);
                 0x5: Inst::IMUL(Ev);
-                0x6: div_Ev();
+                0x6: Inst::DIV(Ev);
                 0x7: idiv_Ev();
             }
         }