From ffda782c3d88d977acc12a3c2c2738719f9304ed Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Fri, 23 Feb 2024 16:41:44 +0100 Subject: Better handling of Hardware counter for rdtsc emulation (ARM64 only for now), more cpuid leafs, and introduce BOX64_RDTSC env.var. with a profile that use it --- src/include/debug.h | 1 + src/include/x64emu.h | 1 + 2 files changed, 2 insertions(+) (limited to 'src/include') diff --git a/src/include/debug.h b/src/include/debug.h index 468fe5c4..59568021 100644 --- a/src/include/debug.h +++ b/src/include/debug.h @@ -13,6 +13,7 @@ extern int box64_dynarec_test; extern int box64_maxcpu; extern int box64_mmap32; extern int box64_ignoreint3; +extern int box64_rdtsc; #ifdef DYNAREC extern int box64_dynarec_dump; extern int box64_dynarec_trace; diff --git a/src/include/x64emu.h b/src/include/x64emu.h index e0adf686..450f7a63 100644 --- a/src/include/x64emu.h +++ b/src/include/x64emu.h @@ -53,6 +53,7 @@ void CallAllCleanup(x64emu_t *emu); void UnimpOpcode(x64emu_t* emu, int is32bits); uint64_t ReadTSC(x64emu_t* emu); +uint64_t ReadTSCFrequency(x64emu_t* emu); double FromLD(void* ld); // long double (80bits pointer) -> double long double LD2localLD(void* ld); // long double (80bits pointer) -> long double (80 or 128bits) -- cgit 1.4.1