mirror of https://gitee.com/openkylin/qemu.git
target-microblaze: dec_barrel: Use extract32
Use extract32 instead of opencoding the shifting and masking. No functional change. Reviewed-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
This commit is contained in:
parent
bc54e71e0c
commit
e3e84983fb
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue