提交 e3e84983 编写于 作者: E Edgar E. Iglesias

target-microblaze: dec_barrel: Use extract32

Use extract32 instead of opencoding the shifting and masking.
No functional change.
Reviewed-by: NRichard Henderson <rth@twiddle.net>
Signed-off-by: NEdgar E. Iglesias <edgar.iglesias@xilinx.com>
上级 bc54e71e
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册