about summary refs log tree commit diff stats
path: root/src/include
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-02-23 16:41:44 +0100
committerptitSeb <sebastien.chev@gmail.com>2024-02-23 16:41:44 +0100
commitffda782c3d88d977acc12a3c2c2738719f9304ed (patch)
treea0e1893fb28090c4f0f2a26c7a67bb40ae71f6b5 /src/include
parent3a6df996dc85257a5496ecb28a72579df225a176 (diff)
downloadbox64-ffda782c3d88d977acc12a3c2c2738719f9304ed.tar.gz
box64-ffda782c3d88d977acc12a3c2c2738719f9304ed.zip
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
Diffstat (limited to 'src/include')
-rw-r--r--src/include/debug.h1
-rw-r--r--src/include/x64emu.h1
2 files changed, 2 insertions, 0 deletions
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)