Add in MOV instructions.
authorGabe Black <gblack@eecs.umich.edu>
Tue, 12 Jun 2007 16:31:42 +0000 (16:31 +0000)
committerGabe Black <gblack@eecs.umich.edu>
Tue, 12 Jun 2007 16:31:42 +0000 (16:31 +0000)
--HG--
extra : convert_revision : 54a6b36dff3c15699faf2c767fc594359422c0ee

src/arch/x86/isa/decoder/one_byte_opcodes.isa
src/arch/x86/isa/insts/data_transfer/move.py

index 8219d0ba83a698fe9aa6e697be1457ff8542843a..c29133a5cc73e701dfa320e5ca9d39ab83c9f457 100644 (file)
             0x7: xchg_Ev_Gv();
         }
         0x11: decode OPCODE_OP_BOTTOM3 {
-            0x0: MOV();
-            0x1: MOV();
-            0x2: MOV();
-            0x3: MOV();
+            0x0: Inst::MOV(Eb,Gb);
+            0x1: Inst::MOV(Ev,Gv);
+            0x2: Inst::MOV(Gb,Eb);
+            0x3: Inst::MOV(Gv,Eb);
             0x4: mov_MwRv_Sw(); //What to do with this one?
             0x5: lea_Gv_M();
             0x6: mov_Sw_MwRv();
index d1d1c1f0152019366f2b3f539d4e282d181b8ccc..acfe2f516d02b6d768b92f5fb17410f56503e87b 100644 (file)
 #
 # Authors: Gabe Black
 
-microcode = ""
+microcode = '''
+def macroop MOV{
+    mov "env.reg", "env.reg", "env.regm"
+};
+'''
 #let {{
 #    class MOV(Inst):
 #      "Mov ^0 ^0 ^1"