diff options
| author | Matheus Ferst | 2022-10-06 22:06:53 +0200 |
|---|---|---|
| committer | Daniel Henrique Barboza | 2022-10-28 18:15:21 +0200 |
| commit | e8e09d7da7dd572e6cf62b2f12b65fb9833cf7ba (patch) | |
| tree | 5aaf37b467b784d683579e835b151a950ddccbfb /target/ppc/translate/processor-ctrl-impl.c.inc | |
| parent | target/ppc: move msgclr/msgsnd to decodetree (diff) | |
| download | qemu-e8e09d7da7dd572e6cf62b2f12b65fb9833cf7ba.tar.gz qemu-e8e09d7da7dd572e6cf62b2f12b65fb9833cf7ba.tar.xz qemu-e8e09d7da7dd572e6cf62b2f12b65fb9833cf7ba.zip | |
target/ppc: move msgclrp/msgsndp to decodetree
Signed-off-by: Matheus Ferst <matheus.ferst@eldorado.org.br>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Message-Id: <20221006200654.725390-6-matheus.ferst@eldorado.org.br>
[danielhb: ppc32 build fix in trans_(MSGCLRP|MSGSNDP)]
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Diffstat (limited to 'target/ppc/translate/processor-ctrl-impl.c.inc')
| -rw-r--r-- | target/ppc/translate/processor-ctrl-impl.c.inc | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/target/ppc/translate/processor-ctrl-impl.c.inc b/target/ppc/translate/processor-ctrl-impl.c.inc index 208f2c2391..d704a322a8 100644 --- a/target/ppc/translate/processor-ctrl-impl.c.inc +++ b/target/ppc/translate/processor-ctrl-impl.c.inc @@ -68,3 +68,29 @@ static bool trans_MSGSND(DisasContext *ctx, arg_X_rb *a) #endif return true; } + +static bool trans_MSGCLRP(DisasContext *ctx, arg_X_rb *a) +{ + REQUIRE_64BIT(ctx); + REQUIRE_INSNS_FLAGS2(ctx, ISA207S); + REQUIRE_SV(ctx); +#if !defined(CONFIG_USER_ONLY) && defined(TARGET_PPC64) + gen_helper_book3s_msgclrp(cpu_env, cpu_gpr[a->rb]); +#else + qemu_build_not_reached(); +#endif + return true; +} + +static bool trans_MSGSNDP(DisasContext *ctx, arg_X_rb *a) +{ + REQUIRE_64BIT(ctx); + REQUIRE_INSNS_FLAGS2(ctx, ISA207S); + REQUIRE_SV(ctx); +#if !defined(CONFIG_USER_ONLY) && defined(TARGET_PPC64) + gen_helper_book3s_msgsndp(cpu_env, cpu_gpr[a->rb]); +#else + qemu_build_not_reached(); +#endif + return true; +} |
