diff options
| author | Yang Liu <liuyang22@iscas.ac.cn> | 2024-02-28 17:10:30 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-28 10:10:30 +0100 |
| commit | 6a4a58185e3f3d62aea51211e6a3d98dafe318b2 (patch) | |
| tree | 81ff10885d77863acfb55558ffbcf372e8c8fbc6 /src/tools | |
| parent | 6cffabacb38499ca1b12269f7989fe0bb78418f0 (diff) | |
| download | box64-6a4a58185e3f3d62aea51211e6a3d98dafe318b2.tar.gz box64-6a4a58185e3f3d62aea51211e6a3d98dafe318b2.zip | |
[RV64_INTERP] Added TSC freq support (#1293)
* [RV64_INTERP] Added TSC freq support * Simplify
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/rcfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/rcfile.c b/src/tools/rcfile.c index 9c44336c..9980e07b 100644 --- a/src/tools/rcfile.c +++ b/src/tools/rcfile.c @@ -577,7 +577,7 @@ void ApplyParams(const char* name) printf_log(LOG_INFO, "Applying %s=%s\n", "BOX64_BASH", param->bash); } if(param->is_box64_rdtsc_present && (box64_rdtsc==2)) { - #if defined(ARM64) + #if defined(ARM64) || defined(RV64) box64_rdtsc = 0; // allow hardxware counter uint64_t freq = ReadTSCFrequency(NULL); printf_log(LOG_INFO, "Applying RDTSC: Hardware counter measured at %d Mhz, ", freq/1000); |