mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
target/riscv: rvb: shift ones
Signed-off-by: Kito Cheng <kito.cheng@sifive.com> Signed-off-by: Frank Chang <frank.chang@sifive.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-id: 20210505160620.15723-11-frank.chang@sifive.com Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
This commit is contained in:
parent
23cd17773b
commit
91d8fc6768
3 changed files with 74 additions and 0 deletions
|
@ -155,6 +155,30 @@ static bool trans_bexti(DisasContext *ctx, arg_bexti *a)
|
|||
return gen_shifti(ctx, a, gen_bext);
|
||||
}
|
||||
|
||||
static bool trans_slo(DisasContext *ctx, arg_slo *a)
|
||||
{
|
||||
REQUIRE_EXT(ctx, RVB);
|
||||
return gen_shift(ctx, a, gen_slo);
|
||||
}
|
||||
|
||||
static bool trans_sloi(DisasContext *ctx, arg_sloi *a)
|
||||
{
|
||||
REQUIRE_EXT(ctx, RVB);
|
||||
return gen_shifti(ctx, a, gen_slo);
|
||||
}
|
||||
|
||||
static bool trans_sro(DisasContext *ctx, arg_sro *a)
|
||||
{
|
||||
REQUIRE_EXT(ctx, RVB);
|
||||
return gen_shift(ctx, a, gen_sro);
|
||||
}
|
||||
|
||||
static bool trans_sroi(DisasContext *ctx, arg_sroi *a)
|
||||
{
|
||||
REQUIRE_EXT(ctx, RVB);
|
||||
return gen_shifti(ctx, a, gen_sro);
|
||||
}
|
||||
|
||||
static bool trans_clzw(DisasContext *ctx, arg_clzw *a)
|
||||
{
|
||||
REQUIRE_64BIT(ctx);
|
||||
|
@ -238,3 +262,31 @@ static bool trans_bextw(DisasContext *ctx, arg_bextw *a)
|
|||
REQUIRE_EXT(ctx, RVB);
|
||||
return gen_shiftw(ctx, a, gen_bext);
|
||||
}
|
||||
|
||||
static bool trans_slow(DisasContext *ctx, arg_slow *a)
|
||||
{
|
||||
REQUIRE_64BIT(ctx);
|
||||
REQUIRE_EXT(ctx, RVB);
|
||||
return gen_shiftw(ctx, a, gen_slo);
|
||||
}
|
||||
|
||||
static bool trans_sloiw(DisasContext *ctx, arg_sloiw *a)
|
||||
{
|
||||
REQUIRE_64BIT(ctx);
|
||||
REQUIRE_EXT(ctx, RVB);
|
||||
return gen_shiftiw(ctx, a, gen_slo);
|
||||
}
|
||||
|
||||
static bool trans_srow(DisasContext *ctx, arg_srow *a)
|
||||
{
|
||||
REQUIRE_64BIT(ctx);
|
||||
REQUIRE_EXT(ctx, RVB);
|
||||
return gen_shiftw(ctx, a, gen_sro);
|
||||
}
|
||||
|
||||
static bool trans_sroiw(DisasContext *ctx, arg_sroiw *a)
|
||||
{
|
||||
REQUIRE_64BIT(ctx);
|
||||
REQUIRE_EXT(ctx, RVB);
|
||||
return gen_shiftiw(ctx, a, gen_sro);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue