diff options
author | Edgar E. Iglesias <edgar.iglesias@xilinx.com> | 2018-04-04 13:47:33 +0200 |
---|---|---|
committer | Edgar E. Iglesias <edgar.iglesias@xilinx.com> | 2018-05-29 09:33:40 +0200 |
commit | 8534063a38583f1e0458daf076154131a83fa0e0 (patch) | |
tree | 12115bb74e50a0ba621c6af1d892ebf8c50a488f | |
parent | 5a5c383b1373aeb6c87a0d6060f6c3dc7c53082b (diff) | |
download | qemu-8534063a38583f1e0458daf076154131a83fa0e0.zip qemu-8534063a38583f1e0458daf076154131a83fa0e0.tar.gz qemu-8534063a38583f1e0458daf076154131a83fa0e0.tar.bz2 |
target-microblaze: dec_load: Use bool instead of unsigned int
Use bool instead of unsigned int to represent flags.
No functional change.
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
-rw-r--r-- | target/microblaze/translate.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/target/microblaze/translate.c b/target/microblaze/translate.c index 0872dc9..a8a5eae 100644 --- a/target/microblaze/translate.c +++ b/target/microblaze/translate.c @@ -897,14 +897,15 @@ static inline TCGv *compute_ldst_addr(DisasContext *dc, TCGv *t) static void dec_load(DisasContext *dc) { TCGv t, v, *addr; - unsigned int size, rev = 0, ex = 0; + unsigned int size; + bool rev = false, ex = false; TCGMemOp mop; mop = dc->opcode & 3; size = 1 << mop; if (!dc->type_b) { - rev = (dc->ir >> 9) & 1; - ex = (dc->ir >> 10) & 1; + rev = extract32(dc->ir, 9, 1); + ex = extract32(dc->ir, 10, 1); } mop |= MO_TE; if (rev) { |