diff options
author | Fernando Eckhardt Valle <phervalle@gmail.com> | 2021-10-29 17:23:52 -0300 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2021-11-09 10:32:51 +1100 |
commit | 725b2d4dac67c96c044ed53df2c5e7128e9aa013 (patch) | |
tree | 352b9395147072972479de7bb2a1bdd2541c1099 /target/ppc/translate/fixedpoint-impl.c.inc | |
parent | eb63efd9f63fabc2ce7ee070f1d8e75585d26543 (diff) | |
download | qemu-725b2d4dac67c96c044ed53df2c5e7128e9aa013.zip qemu-725b2d4dac67c96c044ed53df2c5e7128e9aa013.tar.gz qemu-725b2d4dac67c96c044ed53df2c5e7128e9aa013.tar.bz2 |
target/ppc: move resolve_PLS_D to translate.c
Move resolve_PLS_D from fixedpoint-impl.c.inc to translate.c
because this way the function can be used not only by fixed
point instructions.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Fernando Eckhardt Valle <phervalle@gmail.com>
Signed-off-by: Matheus Ferst <matheus.ferst@eldorado.org.br>
Message-Id: <20211029202424.175401-3-matheus.ferst@eldorado.org.br>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'target/ppc/translate/fixedpoint-impl.c.inc')
-rw-r--r-- | target/ppc/translate/fixedpoint-impl.c.inc | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/target/ppc/translate/fixedpoint-impl.c.inc b/target/ppc/translate/fixedpoint-impl.c.inc index caef5d8..812b7dd 100644 --- a/target/ppc/translate/fixedpoint-impl.c.inc +++ b/target/ppc/translate/fixedpoint-impl.c.inc @@ -18,25 +18,6 @@ */ /* - * Incorporate CIA into the constant when R=1. - * Validate that when R=1, RA=0. - */ -static bool resolve_PLS_D(DisasContext *ctx, arg_D *d, arg_PLS_D *a) -{ - d->rt = a->rt; - d->ra = a->ra; - d->si = a->si; - if (a->r) { - if (unlikely(a->ra != 0)) { - gen_invalid(ctx); - return false; - } - d->si += ctx->cia; - } - return true; -} - -/* * Fixed-Point Load/Store Instructions */ |