diff options
| author | Yang Liu <liuyang22@iscas.ac.cn> | 2024-08-19 20:10:02 +0800 |
|---|---|---|
| committer | Yang Liu <liuyang22@iscas.ac.cn> | 2024-08-19 20:10:02 +0800 |
| commit | 15f6bbebe10ff77c9fea07245493b1fdf5b709cc (patch) | |
| tree | 00743a331f3af346319c141c18c64d761ef3c847 /src | |
| parent | 2daef545dd39ac68021447351275113ceaf92018 (diff) | |
| download | box64-15f6bbebe10ff77c9fea07245493b1fdf5b709cc.tar.gz box64-15f6bbebe10ff77c9fea07245493b1fdf5b709cc.zip | |
[RV64_DYNAREC] Disable vector extension by default until it's ready.
Diffstat (limited to 'src')
| -rw-r--r-- | src/core.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/core.c b/src/core.c index 3283a6c2..5e345568 100644 --- a/src/core.c +++ b/src/core.c @@ -512,7 +512,13 @@ HWCAP2_AFP if(rv64_zbb) printf_log(LOG_INFO, " Zbb"); if(rv64_zbc) printf_log(LOG_INFO, " Zbc"); if(rv64_zbs) printf_log(LOG_INFO, " Zbs"); - if(rv64_vector) printf_log(LOG_INFO, " Vector (vlen: %d)", rv64_vlen); + if (rv64_vector) { + char* p = getenv("BOX64_DYNAREC_RV64VEXT"); + if (p != NULL && p[0] == '1') + printf_log(LOG_INFO, " Vector (vlen: %d)", rv64_vlen); + else + rv64_vector = 0; + } if(rv64_xtheadba) printf_log(LOG_INFO, " XTheadBa"); if(rv64_xtheadbb) printf_log(LOG_INFO, " XTheadBb"); if(rv64_xtheadbs) printf_log(LOG_INFO, " XTheadBs"); |