mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
target/ppc: Implement DCFFIXQQ
Implement the following PowerISA v3.1 instruction: dcffixqq: DFP Convert From Fixed Quadword Quad Signed-off-by: Luis Pires <luis.pires@eldorado.org.br> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20211029192417.400707-5-luis.pires@eldorado.org.br> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
86057426d0
commit
d39b2cc7d0
5 changed files with 43 additions and 0 deletions
|
@ -970,6 +970,18 @@ static void CFFIX_PPs(struct PPC_DFP *dfp)
|
|||
DFP_HELPER_CFFIX(dcffix, 64)
|
||||
DFP_HELPER_CFFIX(dcffixq, 128)
|
||||
|
||||
void helper_DCFFIXQQ(CPUPPCState *env, ppc_fprp_t *t, ppc_avr_t *b)
|
||||
{
|
||||
struct PPC_DFP dfp;
|
||||
|
||||
dfp_prepare_decimal128(&dfp, NULL, NULL, env);
|
||||
decNumberFromInt128(&dfp.t, (uint64_t)b->VsrD(1), (int64_t)b->VsrD(0));
|
||||
dfp_finalize_decimal128(&dfp);
|
||||
CFFIX_PPs(&dfp);
|
||||
|
||||
set_dfp128(t, &dfp.vt);
|
||||
}
|
||||
|
||||
#define DFP_HELPER_CTFIX(op, size) \
|
||||
void helper_##op(CPUPPCState *env, ppc_fprp_t *t, ppc_fprp_t *b) \
|
||||
{ \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue