diff options
author | Martin Liska <mliska@suse.cz> | 2021-04-01 07:17:14 +0200 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2021-04-01 15:53:11 +0200 |
commit | caaf412e9890dac4323b47b58cd38b7ebb26a7db (patch) | |
tree | a7d1a507f894fc4c525dda565bedafdc113e4dfe /sim/microblaze | |
parent | e9b095a538c189369b4792662ea455d2314b0492 (diff) | |
download | gdb-caaf412e9890dac4323b47b58cd38b7ebb26a7db.zip gdb-caaf412e9890dac4323b47b58cd38b7ebb26a7db.tar.gz gdb-caaf412e9890dac4323b47b58cd38b7ebb26a7db.tar.bz2 |
Fix microblaze sim build error
I see the following error for --target=microblaze-elf:
../../../sim/microblaze/interp.c: In function 'sim_engine_run':
../../../sim/microblaze/interp.c:147:39: error: passing argument 2 of 'get_insn_microblaze' from incompatible pointer type [-Werror=incompatible-pointer-types]
147 | op = get_insn_microblaze (inst, &imm_unsigned, &insn_type,
| ^~~~~~~~~~~~~
| |
| int *
In file included from ../../bfd/bfd.h:45,
from ../../../sim/microblaze/interp.c:24:
../../../sim/microblaze/../../opcodes/microblaze-dis.h:34:57: note: expected '_Bool *' but argument is of type 'int *'
34 | extern enum microblaze_instr get_insn_microblaze (long, bool *,
| ^
sim/microblaze/ChangeLog:
* interp.c (sim_engine_run): Use bool instead of int.
Diffstat (limited to 'sim/microblaze')
-rw-r--r-- | sim/microblaze/ChangeLog | 4 | ||||
-rw-r--r-- | sim/microblaze/interp.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/sim/microblaze/ChangeLog b/sim/microblaze/ChangeLog index c20e7c4..ac1d479 100644 --- a/sim/microblaze/ChangeLog +++ b/sim/microblaze/ChangeLog @@ -1,3 +1,7 @@ +2021-04-01 Martin Liska <mliska@suse.cz> + + * interp.c (sim_engine_run): Use bool instead of int. + 2021-02-28 Mike Frysinger <vapier@gentoo.org> * configure: Regenerate. diff --git a/sim/microblaze/interp.c b/sim/microblaze/interp.c index 5b125a6..8a9dbc3 100644 --- a/sim/microblaze/interp.c +++ b/sim/microblaze/interp.c @@ -126,7 +126,7 @@ sim_engine_run (SIM_DESC sd, int cycs; word WLhash; ubyte carry; - int imm_unsigned; + bool imm_unsigned; short ra, rb, rd; long immword; uword oldpc, newpc; |