From: Tsukasa OI Date: Fri, 11 Aug 2023 03:12:52 +0000 (+0000) Subject: RISC-V: Reflect actual range of vlen for hashing X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=86dfe011797b3e442622d427e9abd1e0f70f3a62;p=binutils-gdb.git RISC-V: Reflect actual range of vlen for hashing Before actual vlen handling, fix the riscv_gdbarch_features hashing function based on the actual valid range of vlen. In bytes, vlen is 0, or 4 <= xlen <= 8192. --- diff --git a/gdb/arch/riscv.h b/gdb/arch/riscv.h index d5ea1a55b21..e1965da69eb 100644 --- a/gdb/arch/riscv.h +++ b/gdb/arch/riscv.h @@ -90,7 +90,7 @@ struct riscv_gdbarch_features | (has_fcsr_reg ? 1 : 0) << 13 | (xlen & 0x1f) << 5 | (flen & 0x1f) << 0 - | (vlen & 0xfff) << 14); + | (vlen & 0x3fff) << 14); return val; } };