diff options
author | Edgar E. Iglesias <edgar.iglesias@xilinx.com> | 2016-08-09 15:45:36 +0200 |
---|---|---|
committer | Edgar E. Iglesias <edgar.iglesias@xilinx.com> | 2017-07-04 09:22:20 +0200 |
commit | 2acf6d539c3036b070004e0e11c69cf2db34ed1a (patch) | |
tree | bb6cd7ff020b90a6c5ebae59bf4c156922cb9b7e /target | |
parent | e3e84983fb4d1006438335d869855340aacdeb59 (diff) |
target-microblaze: dec_barrel: Add braces around if-statements
Add braces around if-statements.
No functional change.
Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Diffstat (limited to 'target')
-rw-r--r-- | target/microblaze/translate.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/target/microblaze/translate.c b/target/microblaze/translate.c index e959de72f2..504ed8871a 100644 --- a/target/microblaze/translate.c +++ b/target/microblaze/translate.c @@ -681,13 +681,14 @@ static void dec_barrel(DisasContext *dc) tcg_gen_mov_tl(t0, *(dec_alu_op_b(dc))); tcg_gen_andi_tl(t0, t0, 31); - if (s) + if (s) { tcg_gen_shl_tl(cpu_R[dc->rd], cpu_R[dc->ra], t0); - else { - if (t) + } else { + if (t) { tcg_gen_sar_tl(cpu_R[dc->rd], cpu_R[dc->ra], t0); - else + } else { tcg_gen_shr_tl(cpu_R[dc->rd], cpu_R[dc->ra], t0); + } } } |