drop Zbc from RVA23 profile, guard hwprobe detection with #ifndef PRODUCT, remove unused clmulr

This commit is contained in:
xupeijun 2026-07-31 21:06:09 +08:00
parent c26b5178eb
commit a5d67c42d8
3 changed files with 1 additions and 3 deletions

View File

@ -2715,7 +2715,6 @@ enum Nf {
INSN(minu, 0b0110011, 0b101, 0b0000101);
INSN(clmul, 0b0110011, 0b001, 0b0000101);
INSN(clmulh, 0b0110011, 0b011, 0b0000101);
INSN(clmulr, 0b0110011, 0b010, 0b0000101);
#undef INSN

View File

@ -434,7 +434,6 @@ private:
RV_ENABLE_EXTENSION(UseRVV) \
RV_ENABLE_EXTENSION(UseZba) \
RV_ENABLE_EXTENSION(UseZbb) \
RV_ENABLE_EXTENSION(UseZbc) \
RV_ENABLE_EXTENSION(UseZbs) \
RV_ENABLE_EXTENSION(UseZcb) \
RV_ENABLE_EXTENSION(UseZfa) \

View File

@ -207,10 +207,10 @@ void RiscvHwprobe::add_features_from_query_result() {
if (is_set(RISCV_HWPROBE_KEY_IMA_EXT_0, RISCV_HWPROBE_EXT_ZBB)) {
VM_Version::ext_Zbb.enable_feature();
}
#ifndef PRODUCT
if (is_set(RISCV_HWPROBE_KEY_IMA_EXT_0, RISCV_HWPROBE_EXT_ZBC)) {
VM_Version::ext_Zbc.enable_feature();
}
#ifndef PRODUCT
if (is_set(RISCV_HWPROBE_KEY_IMA_EXT_0, RISCV_HWPROBE_EXT_ZBKB)) {
VM_Version::ext_Zbkb.enable_feature();
}