diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2023-05-01 10:24:46 +0000 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2023-05-01 10:24:46 +0000 |
| commit | aac1663d7579cb9e821d342dda9f999623d20b62 (patch) | |
| tree | c9a273241ff52100d9a79dec64d0d3002bdaee24 /src/main.c | |
| parent | 5b9d963d314aa99302fa5cddb459e34e408d47b2 (diff) | |
| download | box64-aac1663d7579cb9e821d342dda9f999623d20b62.tar.gz box64-aac1663d7579cb9e821d342dda9f999623d20b62.zip | |
[RV64_DYNAREC] Add detection of Zba, Zbb, Zbc and Zbs CPU extensions
Diffstat (limited to 'src/main.c')
| -rwxr-xr-x | src/main.c | 12 |
1 files changed, 12 insertions, 0 deletions
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 |