]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
sim: riscv: Fix crash during instruction decoding
authorJaydeep Patil <jaydeep.patil@imgtec.com>
Thu, 11 Jan 2024 05:28:21 +0000 (05:28 +0000)
committerMike Frysinger <vapier@gentoo.org>
Tue, 23 Jan 2024 01:16:27 +0000 (20:16 -0500)
commitb783d068d969b5422ce60ecc6968a1a35ee92a7e
tree9d2c2de089744bea934a815777fea4f409742b14
parent8fed036befd8e87e9a602a5fc926db30aad69af3
sim: riscv: Fix crash during instruction decoding

The match_never() function has been removed and thus step_once() crashes
during instruction decoding. Fixed it by checking for null pointer before
invoking function attached to match_func member of riscv_opcode structure
sim/riscv/sim-main.c