commit | b69bd9e723db53ce95c6ebb911d623b8f396b6ac | [log] [tgz] |
---|---|---|
author | Mike Frysinger <vapier@gentoo.org> | Sat Jun 26 23:03:53 2021 -0400 |
committer | Mike Frysinger <vapier@gentoo.org> | Sun Jun 27 10:48:07 2021 -0400 |
tree | d2cde494c0cee486772f3a692052c29a13b9918b | |
parent | a7ffa88dc665b09f774c4a8cce1ac31377c96a74 [diff] |
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.