[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL v1 11/17] target-microblaze: dec_barrel: Use extract3
From: |
Edgar E. Iglesias |
Subject: |
[Qemu-devel] [PULL v1 11/17] target-microblaze: dec_barrel: Use extract32 |
Date: |
Tue, 4 Jul 2017 11:54:42 +0200 |
From: "Edgar E. Iglesias" <address@hidden>
Use extract32 instead of opencoding the shifting and masking.
No functional change.
Reviewed-by: Richard Henderson <address@hidden>
Signed-off-by: Edgar E. Iglesias <address@hidden>
---
target/microblaze/translate.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/target/microblaze/translate.c b/target/microblaze/translate.c
index 4136a8e..e959de7 100644
--- a/target/microblaze/translate.c
+++ b/target/microblaze/translate.c
@@ -670,8 +670,8 @@ static void dec_barrel(DisasContext *dc)
return;
}
- s = dc->imm & (1 << 10);
- t = dc->imm & (1 << 9);
+ s = extract32(dc->imm, 10, 1);
+ t = extract32(dc->imm, 9, 1);
LOG_DIS("bs%s%s r%d r%d r%d\n",
s ? "l" : "r", t ? "a" : "l", dc->rd, dc->ra, dc->rb);
--
2.7.4
- [Qemu-devel] [PULL v1 00/17] Xilinx queue, Edgar E. Iglesias, 2017/07/04
- [Qemu-devel] [PULL v1 04/17] target-microblaze: Add CPU versions 9.4, 9.5 and 9.6, Edgar E. Iglesias, 2017/07/04
- [Qemu-devel] [PULL v1 02/17] target-microblaze: Correct bit shift for the PVR0 version field, Edgar E. Iglesias, 2017/07/04
- [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 <=
- [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, 2017/07/04
- [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