Skip to content

Commit 86dfe01

Browse files
committed
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.
1 parent 1c450dc commit 86dfe01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gdb/arch/riscv.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ struct riscv_gdbarch_features
9090
| (has_fcsr_reg ? 1 : 0) << 13
9191
| (xlen & 0x1f) << 5
9292
| (flen & 0x1f) << 0
93-
| (vlen & 0xfff) << 14);
93+
| (vlen & 0x3fff) << 14);
9494
return val;
9595
}
9696
};

0 commit comments

Comments
 (0)