qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [4509] converted BCD ops to TCG
@ 2008-05-21 13:24 Fabrice Bellard
  0 siblings, 0 replies; only message in thread
From: Fabrice Bellard @ 2008-05-21 13:24 UTC (permalink / raw)
  To: qemu-devel

Revision: 4509
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4509
Author:   bellard
Date:     2008-05-21 13:24:30 +0000 (Wed, 21 May 2008)

Log Message:
-----------
converted BCD ops to TCG

Modified Paths:
--------------
    trunk/target-i386/op.c
    trunk/target-i386/translate.c

Modified: trunk/target-i386/op.c
===================================================================
--- trunk/target-i386/op.c	2008-05-21 10:12:54 UTC (rev 4508)
+++ trunk/target-i386/op.c	2008-05-21 13:24:30 UTC (rev 4509)
@@ -165,38 +165,6 @@
 
 #endif
 
-/* bcd */
-
-void OPPROTO op_aam(void)
-{
-    helper_aam(PARAM1);
-}
-
-void OPPROTO op_aad(void)
-{
-    helper_aad(PARAM1);
-}
-
-void OPPROTO op_aaa(void)
-{
-    helper_aaa();
-}
-
-void OPPROTO op_aas(void)
-{
-    helper_aas();
-}
-
-void OPPROTO op_daa(void)
-{
-    helper_daa();
-}
-
-void OPPROTO op_das(void)
-{
-    helper_das();
-}
-
 /* segment handling */
 
 /* faster VM86 version */

Modified: trunk/target-i386/translate.c
===================================================================
--- trunk/target-i386/translate.c	2008-05-21 10:12:54 UTC (rev 4508)
+++ trunk/target-i386/translate.c	2008-05-21 13:24:30 UTC (rev 4509)
@@ -5926,7 +5926,7 @@
             goto illegal_op;
         if (s->cc_op != CC_OP_DYNAMIC)
             gen_op_set_cc_op(s->cc_op);
-        gen_op_daa();
+        tcg_gen_helper_0_0(helper_daa);
         s->cc_op = CC_OP_EFLAGS;
         break;
     case 0x2f: /* das */
@@ -5934,7 +5934,7 @@
             goto illegal_op;
         if (s->cc_op != CC_OP_DYNAMIC)
             gen_op_set_cc_op(s->cc_op);
-        gen_op_das();
+        tcg_gen_helper_0_0(helper_das);
         s->cc_op = CC_OP_EFLAGS;
         break;
     case 0x37: /* aaa */
@@ -5942,7 +5942,7 @@
             goto illegal_op;
         if (s->cc_op != CC_OP_DYNAMIC)
             gen_op_set_cc_op(s->cc_op);
-        gen_op_aaa();
+        tcg_gen_helper_0_0(helper_aaa);
         s->cc_op = CC_OP_EFLAGS;
         break;
     case 0x3f: /* aas */
@@ -5950,7 +5950,7 @@
             goto illegal_op;
         if (s->cc_op != CC_OP_DYNAMIC)
             gen_op_set_cc_op(s->cc_op);
-        gen_op_aas();
+        tcg_gen_helper_0_0(helper_aas);
         s->cc_op = CC_OP_EFLAGS;
         break;
     case 0xd4: /* aam */
@@ -5960,7 +5960,7 @@
         if (val == 0) {
             gen_exception(s, EXCP00_DIVZ, pc_start - s->cs_base);
         } else {
-            gen_op_aam(val);
+            tcg_gen_helper_0_1(helper_aam, tcg_const_i32(val));
             s->cc_op = CC_OP_LOGICB;
         }
         break;
@@ -5968,7 +5968,7 @@
         if (CODE64(s))
             goto illegal_op;
         val = ldub_code(s->pc++);
-        gen_op_aad(val);
+        tcg_gen_helper_0_1(helper_aad, tcg_const_i32(val));
         s->cc_op = CC_OP_LOGICB;
         break;
         /************************/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-05-21 13:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-21 13:24 [Qemu-devel] [4509] converted BCD ops to TCG Fabrice Bellard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).