Module Name: src
Committed By: rin
Date: Mon May 31 11:44:07 UTC 2021
Modified Files:
src/sys/lib/libunwind: Registers.hpp
Log Message:
PR toolchain/55837
copyFloatVectorRegister(): Assert register number is valid to make sure.
To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/sys/lib/libunwind/Registers.hpp
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/lib/libunwind/Registers.hpp
diff -u src/sys/lib/libunwind/Registers.hpp:1.22 src/sys/lib/libunwind/Registers.hpp:1.23
--- src/sys/lib/libunwind/Registers.hpp:1.22 Mon May 31 11:41:22 2021
+++ src/sys/lib/libunwind/Registers.hpp Mon May 31 11:44:06 2021
@@ -382,6 +382,7 @@ public:
}
void copyFloatVectorRegister(int num, uint64_t addr_) {
+ assert(validFloatVectorRegister(num));
const void *addr = reinterpret_cast<const void *>(addr_);
if (num >= REGNO_ARM32_S0 && num <= REGNO_ARM32_S31) {
if ((flags & FLAGS_VFPV2_USED) == 0) {