]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
sim: frv: fix cmpb uninitialized variable usage
authorMike Frysinger <vapier@gentoo.org>
Sun, 24 Dec 2023 10:21:30 +0000 (05:21 -0500)
committerMike Frysinger <vapier@gentoo.org>
Mon, 1 Jan 2024 15:56:08 +0000 (10:56 -0500)
commitf793be444cc72d818064b0c9b98ecd25f781a38d
tree7720d19175867bae845290952ed1ffbd44eeb993
parent361a6d49c6526dcff3b530c8ceefcce95fe1b9d0
sim: frv: fix cmpb uninitialized variable usage

This code sets up the cc variable based on the comparison of other
registers, but it does so incrementally with bit operations, and it
never initializes the cc variable.  Initialize it to 0 which the
cmpba insn is already doing.
cpu/frv.cpu
sim/frv/sem.c