diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2005-03-13 16:55:58 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2005-03-13 16:55:58 +0000 |
commit | 20495218834824723ef81306c6e1fd27fc3ae560 (patch) | |
tree | d1113078c7c59ff8a6ab70f92aaf7aa05d2800af /target-arm/nwfpe/double_cpdo.c | |
parent | 158142c2c2df728cfa3b5320c65534921a764f26 (diff) |
use the generic soft float code
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1333 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-arm/nwfpe/double_cpdo.c')
-rw-r--r-- | target-arm/nwfpe/double_cpdo.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/target-arm/nwfpe/double_cpdo.c b/target-arm/nwfpe/double_cpdo.c index c44d3fc58e..944083a431 100644 --- a/target-arm/nwfpe/double_cpdo.c +++ b/target-arm/nwfpe/double_cpdo.c @@ -53,7 +53,7 @@ unsigned int DoubleCPDO(const unsigned int opcode) switch (fpa11->fType[Fm]) { case typeSingle: - rFm = float32_to_float64(fpa11->fpreg[Fm].fSingle); + rFm = float32_to_float64(fpa11->fpreg[Fm].fSingle, &fpa11->fp_status); break; case typeDouble: @@ -79,7 +79,7 @@ unsigned int DoubleCPDO(const unsigned int opcode) switch (fpa11->fType[Fn]) { case typeSingle: - rFn = float32_to_float64(fpa11->fpreg[Fn].fSingle); + rFn = float32_to_float64(fpa11->fpreg[Fn].fSingle, &fpa11->fp_status); break; case typeDouble: @@ -96,30 +96,30 @@ unsigned int DoubleCPDO(const unsigned int opcode) { /* dyadic opcodes */ case ADF_CODE: - fpa11->fpreg[Fd].fDouble = float64_add(rFn,rFm); + fpa11->fpreg[Fd].fDouble = float64_add(rFn,rFm, &fpa11->fp_status); break; case MUF_CODE: case FML_CODE: - fpa11->fpreg[Fd].fDouble = float64_mul(rFn,rFm); + fpa11->fpreg[Fd].fDouble = float64_mul(rFn,rFm, &fpa11->fp_status); break; case SUF_CODE: - fpa11->fpreg[Fd].fDouble = float64_sub(rFn,rFm); + fpa11->fpreg[Fd].fDouble = float64_sub(rFn,rFm, &fpa11->fp_status); break; case RSF_CODE: - fpa11->fpreg[Fd].fDouble = float64_sub(rFm,rFn); + fpa11->fpreg[Fd].fDouble = float64_sub(rFm,rFn, &fpa11->fp_status); break; case DVF_CODE: case FDV_CODE: - fpa11->fpreg[Fd].fDouble = float64_div(rFn,rFm); + fpa11->fpreg[Fd].fDouble = float64_div(rFn,rFm, &fpa11->fp_status); break; case RDF_CODE: case FRD_CODE: - fpa11->fpreg[Fd].fDouble = float64_div(rFm,rFn); + fpa11->fpreg[Fd].fDouble = float64_div(rFm,rFn, &fpa11->fp_status); break; #if 0 @@ -133,7 +133,7 @@ unsigned int DoubleCPDO(const unsigned int opcode) #endif case RMF_CODE: - fpa11->fpreg[Fd].fDouble = float64_rem(rFn,rFm); + fpa11->fpreg[Fd].fDouble = float64_rem(rFn,rFm, &fpa11->fp_status); break; #if 0 @@ -173,11 +173,11 @@ unsigned int DoubleCPDO(const unsigned int opcode) case RND_CODE: case URD_CODE: - fpa11->fpreg[Fd].fDouble = float64_round_to_int(rFm); + fpa11->fpreg[Fd].fDouble = float64_round_to_int(rFm, &fpa11->fp_status); break; case SQT_CODE: - fpa11->fpreg[Fd].fDouble = float64_sqrt(rFm); + fpa11->fpreg[Fd].fDouble = float64_sqrt(rFm, &fpa11->fp_status); break; #if 0 |