]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - sim/riscv/sim-main.c
sim: riscv: Fix confusion with c.jal vs. c.addiw
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Mon, 15 Apr 2024 03:52:19 +0000 (05:52 +0200)
committerBernd Edlinger <bernd.edlinger@hotmail.de>
Mon, 15 Apr 2024 09:04:07 +0000 (11:04 +0200)
commitd8e753b79118dc219855e21295b7d6e2f731e847
tree0401b37b2e40a479f4cc698055f46bc75f2f1018
parenta73073dc7f23ab37ae33402fbb38c8314bcbea3e
sim: riscv: Fix confusion with c.jal vs. c.addiw

There was apparently a confusion which cpu model uses
compressed JAL and which ADDIW.  Fixed that in execute_c,
case MATCH_C_JAL | MATCH_C_ADDIW.

Fixes 3224e32fb84f ("sim: riscv: Add support for compressed integer instructions")

Approved-By: Andrew Burgess <aburgess@redhat.com>
sim/riscv/sim-main.c