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/main.c | |
| 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/main.c')
| -rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c index 8cecf8ac..14d86798 100644 --- a/src/main.c +++ b/src/main.c @@ -1007,7 +1007,7 @@ void LoadLogEnv() box64_rdtsc = p[0]-'0'; } if(box64_rdtsc==2) { - #if defined(ARM64) + #if defined(ARM64) || defined(RV64) box64_rdtsc = 0; // allow hardxare counter uint64_t freq = ReadTSCFrequency(NULL); printf_log(LOG_INFO, "Hardware counter measured at %d Mhz, ", freq/1000); |