Commit e3e84983 authored by Edgar E. Iglesias's avatar Edgar E. Iglesias
Browse files

target-microblaze: dec_barrel: Use extract32



Use extract32 instead of opencoding the shifting and masking.
No functional change.

Reviewed-by: default avatarRichard Henderson <rth@twiddle.net>
Signed-off-by: default avatarEdgar E. Iglesias <edgar.iglesias@xilinx.com>
parent bc54e71e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);