Implement CLC and STC (Pascal Massimino <pmassimi@ilog.fr>).


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@353 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/vg_to_ucode.c b/coregrind/vg_to_ucode.c
index da2871c..9230236 100644
--- a/coregrind/vg_to_ucode.c
+++ b/coregrind/vg_to_ucode.c
@@ -4051,6 +4051,22 @@
       if (dis) VG_(printf)("std\n");
       break;
 
+   case 0xF8: /* CLC */
+      uInstr0(cb, CALLM_S, 0);
+      uInstr1(cb, CALLM, 0, Lit16, VGOFF_(helper_CLC));
+      uFlagsRWU(cb, FlagsEmpty, FlagC, FlagsOSZAP);
+      uInstr0(cb, CALLM_E, 0);
+      if (dis) VG_(printf)("clc\n");
+      break;
+
+   case 0xF9: /* STC */
+      uInstr0(cb, CALLM_S, 0);
+      uInstr1(cb, CALLM, 0, Lit16, VGOFF_(helper_STC));
+      uFlagsRWU(cb, FlagsEmpty, FlagC, FlagsOSZCP);
+      uInstr0(cb, CALLM_E, 0);
+      if (dis) VG_(printf)("stc\n");
+      break;
+
    case 0xF2: { /* REPNE prefix insn */
       Addr eip_orig = eip - 1;
       abyte = getUChar(eip); eip++;