aboutsummaryrefslogtreecommitdiff
path: root/sim/common/ChangeLog
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-06-26 23:03:53 -0400
committerMike Frysinger <vapier@gentoo.org>2021-06-27 10:48:07 -0400
commitb69bd9e723db53ce95c6ebb911d623b8f396b6ac (patch)
treed2cde494c0cee486772f3a692052c29a13b9918b /sim/common/ChangeLog
parenta7ffa88dc665b09f774c4a8cce1ac31377c96a74 (diff)
downloadgdb-b69bd9e723db53ce95c6ebb911d623b8f396b6ac.zip
gdb-b69bd9e723db53ce95c6ebb911d623b8f396b6ac.tar.gz
gdb-b69bd9e723db53ce95c6ebb911d623b8f396b6ac.tar.bz2
sim: cgen: add asserts to fix unused engine warnings
If the user passed in values outside the range of [0, MAX_NR_PROCESSORS), it would cause the code to access out-of-bind engine function pointers. Add some asserts to catch that and to fix the related compiler warnings.
Diffstat (limited to 'sim/common/ChangeLog')
-rw-r--r--sim/common/ChangeLog4
1 files changed, 4 insertions, 0 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
index 91e254c..8472b2b 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -1,5 +1,9 @@
2021-06-27 Mike Frysinger <vapier@gentoo.org>
+ * cgen-run.c (engine_run_n): Assert cpu arguments are valid.
+
+2021-06-27 Mike Frysinger <vapier@gentoo.org>
+
* cgen-trace.h (cgen_trace_printf): Add ATTRIBUTE_PRINTF_2.
(sim_disasm_sprintf): Likewise.