From aac1663d7579cb9e821d342dda9f999623d20b62 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Mon, 1 May 2023 10:24:46 +0000 Subject: [RV64_DYNAREC] Add detection of Zba, Zbb, Zbc and Zbs CPU extensions --- src/main.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index f4b7a239..63894b5b 100755 --- a/src/main.c +++ b/src/main.c @@ -71,6 +71,11 @@ int arm64_aes = 0; int arm64_pmull = 0; int arm64_crc32 = 0; int arm64_atomics = 0; +#elif defined(RV64) +int rv64_zba = 0; +int rv64_zbb = 0; +int rv64_zbc = 0; +int rv64_zbs = 0; #endif #else //DYNAREC int box64_dynarec = 0; @@ -355,7 +360,14 @@ HWCAP2_ECV printf_log(LOG_INFO, "Dynarec for LoongArch"); printf_log(LOG_INFO, " PageSize:%zd ", box64_pagesize); #elif defined(RV64) + void RV64_Detect_Function(); + RV64_Detect_Function(); printf_log(LOG_INFO, "Dynarec for RISC-V"); + printf_log(LOG_INFO, "With extension: I M A F D C"); + if(rv64_zba) printf_log(LOG_INFO, " Zba"); + if(rv64_zbb) printf_log(LOG_INFO, " Zbb"); + if(rv64_zbc) printf_log(LOG_INFO, " Zbc"); + if(rv64_zbs) printf_log(LOG_INFO, " Zbs"); printf_log(LOG_INFO, " PageSize:%zd ", box64_pagesize); #else #error Unsupported architecture -- cgit 1.4.1