projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c450dc
)
RISC-V: Reflect actual range of vlen for hashing
author
Tsukasa OI
<research_trasio@irq.a4lg.com>
Fri, 11 Aug 2023 03:12:52 +0000
(
03:12
+0000)
committer
Tsukasa OI
<research_trasio@irq.a4lg.com>
Fri, 11 Aug 2023 13:27:52 +0000
(13:27 +0000)
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.
gdb/arch/riscv.h
patch
|
blob
|
history
diff --git
a/gdb/arch/riscv.h
b/gdb/arch/riscv.h
index d5ea1a55b21418c82f143f82f39eb4637a52cb29..e1965da69ebb1a5f9424603138646b6a1fc9f2f3 100644
(file)
--- 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 & 0x
3
fff) << 14);
return val;
}
};