Commit 7505ea23 authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

realmode: make performance test run longer and fix result

We need a prefix to loop on ECX.

Signed-off-by: default avatarPaolo Bonzini <>
parent 9306cb8e
......@@ -1548,12 +1548,12 @@ static void test_nopl(void)
static u32 perf_baseline;
#define PERF_COUNT 100000
#define PERF_COUNT 1000000
#define MK_INSN_PERF(name, insn) \
MK_INSN(name, "rdtsc; mov %eax, %ebx; mov %edx, %esi\n" \
"1:" insn "\n" \
"loop 1b\n" \
".byte 0x67; loop 1b\n" \
static u32 cycles_in_big_real_mode(struct insn_desc *insn)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment