From 6a4a58185e3f3d62aea51211e6a3d98dafe318b2 Mon Sep 17 00:00:00 2001 From: Yang Liu Date: Wed, 28 Feb 2024 17:10:30 +0800 Subject: [RV64_INTERP] Added TSC freq support (#1293) * [RV64_INTERP] Added TSC freq support * Simplify --- src/tools/rcfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tools') 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); -- cgit 1.4.1