[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL v1 12/17] target-microblaze: dec_barrel: Add braces a
From: |
Edgar E. Iglesias |
Subject: |
[Qemu-devel] [PULL v1 12/17] target-microblaze: dec_barrel: Add braces around if-statements |
Date: |
Tue, 4 Jul 2017 11:54:43 +0200 |
From: "Edgar E. Iglesias" <address@hidden>
Add braces around if-statements.
No functional change.
Reviewed-by: Richard Henderson <address@hidden>
Signed-off-by: Edgar E. Iglesias <address@hidden>
---
target/microblaze/translate.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/target/microblaze/translate.c b/target/microblaze/translate.c
index e959de7..504ed88 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);
+ }
}
}
--
2.7.4
- [Qemu-devel] [PULL v1 01/17] disas/microblaze: Add missing 'const' attributes, (continued)
- [Qemu-devel] [PULL v1 01/17] disas/microblaze: Add missing 'const' attributes, Edgar E. Iglesias, 2017/07/04
- [Qemu-devel] [PULL v1 03/17] target-microblaze: Don't hard code 0xb as initial MB version, Edgar E. Iglesias, 2017/07/04
- [Qemu-devel] [PULL v1 05/17] target-microblaze: Introduce a use-barrel property, Edgar E. Iglesias, 2017/07/04
- [Qemu-devel] [PULL v1 06/17] target-microblaze: Introduce a use-div property, Edgar E. Iglesias, 2017/07/04
- [Qemu-devel] [PULL v1 07/17] target-microblaze: Introduce a use-hw-mul property, Edgar E. Iglesias, 2017/07/04
- [Qemu-devel] [PULL v1 09/17] target-microblaze: Introduce a use-pcmp-instr property, Edgar E. Iglesias, 2017/07/04
- [Qemu-devel] [PULL v1 10/17] target-microblaze: dec_barrel: Use bool instead of unsigned int, Edgar E. Iglesias, 2017/07/04
- [Qemu-devel] [PULL v1 11/17] target-microblaze: dec_barrel: Use extract32, Edgar E. Iglesias, 2017/07/04
- [Qemu-devel] [PULL v1 13/17] target-microblaze: dec_barrel: Plug TCG temp leak, Edgar E. Iglesias, 2017/07/04
- [Qemu-devel] [PULL v1 08/17] target-microblaze: Introduce a use-msr-instr property, Edgar E. Iglesias, 2017/07/04
- [Qemu-devel] [PULL v1 12/17] target-microblaze: dec_barrel: Add braces around if-statements,
Edgar E. Iglesias <=
- [Qemu-devel] [PULL v1 14/17] target-microblaze: dec_barrel: Add BSEFI, Edgar E. Iglesias, 2017/07/04
- [Qemu-devel] [PULL v1 15/17] target-microblaze: dec_barrel: Add BSIFI, Edgar E. Iglesias, 2017/07/04
- [Qemu-devel] [PULL v1 16/17] target-microblaze: Add CPU version 10.0, Edgar E. Iglesias, 2017/07/04
- [Qemu-devel] [PULL v1 17/17] xilinx-dp: Add support for the yuy2 video format, Edgar E. Iglesias, 2017/07/04
- Re: [Qemu-devel] [PULL v1 00/17] Xilinx queue, Peter Maydell, 2017/07/04