X86: Implement the undocumented SALC instruction which sets AL to 0xFF if CF=1 and...
authorGabe Black <gblack@eecs.umich.edu>
Fri, 19 Oct 2007 05:42:17 +0000 (22:42 -0700)
committerGabe Black <gblack@eecs.umich.edu>
Fri, 19 Oct 2007 05:42:17 +0000 (22:42 -0700)
--HG--
extra : convert_revision : 845d43c544e296d7595f54054906055a9f21ad9f

src/arch/x86/isa/decoder/one_byte_opcodes.isa
src/arch/x86/isa/insts/general_purpose/compare_and_test/set_byte_on_condition.py

index 483e750b26e6683b7ad6f88a6f0d31ed7d38837f..473dd1eeb7a8e0dc8a459d3352113a8b982c7d68 100644 (file)
             }
             0x6: decode MODE_SUBMODE {
                 0x0: UD2();
-                default: WarnUnimpl::salc();
+                default: SALC(rAb);
             }
             0x7: XLAT();
         }
index 81091905c8e5ba394b95758b28e5b8ae3bd1f3fc..fab42dffd2c56c4e5a99346ba905b38204dfef78 100644 (file)
 # Authors: Gabe Black
 
 microcode = '''
+def macroop SALC_R
+{
+    sbb reg, reg, reg, dataSize=1
+};
+
 def macroop SETZ_R
 {
     movi reg, reg, 1, flags=(CZF,)