mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
Fix rdtsc instruction counting.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4810 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
bf20dc076b
commit
efade670fe
1 changed files with 6 additions and 0 deletions
|
@ -6382,7 +6382,13 @@ static target_ulong disas_insn(DisasContext *s, target_ulong pc_start)
|
||||||
if (s->cc_op != CC_OP_DYNAMIC)
|
if (s->cc_op != CC_OP_DYNAMIC)
|
||||||
gen_op_set_cc_op(s->cc_op);
|
gen_op_set_cc_op(s->cc_op);
|
||||||
gen_jmp_im(pc_start - s->cs_base);
|
gen_jmp_im(pc_start - s->cs_base);
|
||||||
|
if (use_icount)
|
||||||
|
gen_io_start();
|
||||||
tcg_gen_helper_0_0(helper_rdtsc);
|
tcg_gen_helper_0_0(helper_rdtsc);
|
||||||
|
if (use_icount) {
|
||||||
|
gen_io_end();
|
||||||
|
gen_jmp(s, s->pc - s->cs_base);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case 0x133: /* rdpmc */
|
case 0x133: /* rdpmc */
|
||||||
if (s->cc_op != CC_OP_DYNAMIC)
|
if (s->cc_op != CC_OP_DYNAMIC)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue