diff options
| author | Yang Liu <liuyang22@iscas.ac.cn> | 2024-10-05 02:13:25 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-04 20:13:25 +0200 |
| commit | 0243e93e971f90dded5c82474e8f391540b5f3b6 (patch) | |
| tree | 55cd0c313f5a8474e2c33003710885cd861ae38f /src | |
| parent | 778bbc6d0853a57fdc7022d4788e0c0e191aeb63 (diff) | |
| download | box64-0243e93e971f90dded5c82474e8f391540b5f3b6.tar.gz box64-0243e93e971f90dded5c82474e8f391540b5f3b6.zip | |
[RV64] Allowed disabling more extensions (#1904)
Diffstat (limited to 'src')
| -rw-r--r-- | src/core.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/core.c b/src/core.c index 05f516d9..58acfd30 100644 --- a/src/core.c +++ b/src/core.c @@ -518,7 +518,32 @@ HWCAP2_AFP RV64_Detect_Function(); rv64_vector = 0; rv64_xtheadvector = 0; + } else if (p != NULL && !strcasecmp(p, "zba")) { + RV64_Detect_Function(); + rv64_zba = 0; + } else if (p != NULL && !strcasecmp(p, "zbb")) { + RV64_Detect_Function(); + rv64_zbb = 0; + } else if (p != NULL && !strcasecmp(p, "zbc")) { + RV64_Detect_Function(); + rv64_zbc = 0; + } else if (p != NULL && !strcasecmp(p, "zbs")) { + RV64_Detect_Function(); + rv64_zbs = 0; + } else if (p != NULL && !strcasecmp(p, "xtheadba")) { + RV64_Detect_Function(); + rv64_xtheadba = 0; + } else if (p != NULL && !strcasecmp(p, "xtheadbb")) { + RV64_Detect_Function(); + rv64_xtheadbb = 0; + } else if (p != NULL && !strcasecmp(p, "xtheadbs")) { + RV64_Detect_Function(); + rv64_xtheadbs = 0; + } else if (p != NULL && !strcasecmp(p, "xtheadmempair")) { + RV64_Detect_Function(); + rv64_xtheadmempair = 0; } + 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"); |