qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [4810] Fix rdtsc instruction counting.
@ 2008-06-30 17:51 Paul Brook
  0 siblings, 0 replies; only message in thread
From: Paul Brook @ 2008-06-30 17:51 UTC (permalink / raw)
  To: qemu-devel

Revision: 4810
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4810
Author:   pbrook
Date:     2008-06-30 17:51:26 +0000 (Mon, 30 Jun 2008)

Log Message:
-----------
Fix rdtsc instruction counting.

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

Modified: trunk/target-i386/translate.c
===================================================================
--- trunk/target-i386/translate.c	2008-06-30 17:22:19 UTC (rev 4809)
+++ trunk/target-i386/translate.c	2008-06-30 17:51:26 UTC (rev 4810)
@@ -6382,7 +6382,13 @@
         if (s->cc_op != CC_OP_DYNAMIC)
             gen_op_set_cc_op(s->cc_op);
         gen_jmp_im(pc_start - s->cs_base);
+        if (use_icount)
+            gen_io_start();
         tcg_gen_helper_0_0(helper_rdtsc);
+        if (use_icount) {
+            gen_io_end();
+            gen_jmp(s, s->pc - s->cs_base);
+        }
         break;
     case 0x133: /* rdpmc */
         if (s->cc_op != CC_OP_DYNAMIC)

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

only message in thread, other threads:[~2008-06-30 17:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-30 17:51 [Qemu-devel] [4810] Fix rdtsc instruction counting Paul Brook

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).