summaryrefslogtreecommitdiffstats
path: root/target-s390x/fpu_helper.c
Commit message (Collapse)AuthorAgeFilesLines
* s390: Clean up includesPeter Maydell2019-11-291-0/+1
| | | | | | | | | | | Clean up includes so that osdep.h is included first and headers which it implies are not included manually. This commit was created with scripts/clean-includes. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com> Message-id: 1453832250-766-8-git-send-email-peter.maydell@linaro.org
* target-s390x: implement LOAD FP INTEGER instructionsAurelien Jarno2015-06-051-0/+31
| | | | | | | | | This is needed to pass the gcc.c-torture/execute/ieee/20010114-2.c test in the gcc testsuite. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> Reviewed-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Alexander Graf <agraf@suse.de>
* target-s390x: silence NaNs for LOAD LENGTHENED and LOAD ROUNDEDAurelien Jarno2015-06-051-6/+6
| | | | | | | | LOAD LENGTHENED and LOAD ROUNDED are considered as FP operations and thus need to convert input sNaN into corresponding qNaN. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> Signed-off-by: Alexander Graf <agraf@suse.de>
* softmmu: introduce cpu_ldst.hPaolo Bonzini2014-06-051-4/+1
| | | | | | | | | | This will collect all load and store helpers soon. For now it is just a replacement for softmmu_exec.h, which this patch stops including directly, but we also include it where this will be necessary in order to simplify the next patch. Reviewed-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
* tcg: Invert the inclusion of helper.hRichard Henderson2014-05-281-1/+1
| | | | | | | | | | Rather than include helper.h with N values of GEN_HELPER, include a secondary file that sets up the macros to include helper.h. This minimizes the files that must be rebuilt when changing the macros for file N. Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Signed-off-by: Richard Henderson <rth@twiddle.net>
* exec: Change cpu_abort() argument to CPUStateAndreas Färber2014-03-131-1/+3
| | | | Signed-off-by: Andreas Färber <afaerber@suse.de>
* target-s390: Implement LOAD/SET FP AND SIGNALRichard Henderson2013-01-051-8/+29
| | | | Signed-off-by: Richard Henderson <rth@twiddle.net>
* target-s390: Use uint64_to_float128Richard Henderson2013-01-051-2/+1
| | | | Signed-off-by: Richard Henderson <rth@twiddle.net>
* target-s390: Implement CONVERT FROM LOGICALRichard Henderson2013-01-051-0/+31
| | | | Signed-off-by: Richard Henderson <rth@twiddle.net>
* target-s390: Implement CONVERT TO LOGICALRichard Henderson2013-01-051-0/+66
| | | | Signed-off-by: Richard Henderson <rth@twiddle.net>
* target-s390: Convert LFPC, SFPCRichard Henderson2013-01-051-0/+17
| | | | | | Note that we were failing to set the rounding mode in fpu_status. Signed-off-by: Richard Henderson <rth@twiddle.net>
* target-s390: Convert CONVERT FROM FIXEDRichard Henderson2013-01-051-51/+30
| | | | Signed-off-by: Richard Henderson <rth@twiddle.net>
* target-s390: Convert CONVERT TO FIXEDRichard Henderson2013-01-051-57/+41
| | | | Signed-off-by: Richard Henderson <rth@twiddle.net>
* target-s390: Convert LOAD ZERORichard Henderson2013-01-051-22/+0
| | | | Signed-off-by: Richard Henderson <rth@twiddle.net>
* target-s390: Convert FP SQUARE ROOTRichard Henderson2013-01-051-3/+21
| | | | Signed-off-by: Richard Henderson <rth@twiddle.net>
* target-s390: Convert FP LOAD COMPLIMENT, NEGATIVE, POSITIVERichard Henderson2013-01-051-65/+0
| | | | Signed-off-by: Richard Henderson <rth@twiddle.net>
* target-s390: Convert TEST DATA CLASSRichard Henderson2013-01-051-18/+10
| | | | Signed-off-by: Richard Henderson <rth@twiddle.net>
* target-s390: Convert MULTIPLY AND ADD, SUBTRACTRichard Henderson2013-01-051-31/+26
| | | | | | Use the new float*_muladd interface to softfloat. Signed-off-by: Richard Henderson <rth@twiddle.net>
* target-s390: Convert FP MULTIPLYRichard Henderson2013-01-051-48/+39
| | | | Signed-off-by: Richard Henderson <rth@twiddle.net>
* target-s390: Convert FP DIVIDERichard Henderson2013-01-051-48/+20
| | | | Signed-off-by: Richard Henderson <rth@twiddle.net>
* target-s390: Convert FP SUBTRACTRichard Henderson2013-01-051-54/+20
| | | | Signed-off-by: Richard Henderson <rth@twiddle.net>
* target-s390: Convert FP ADD, COMPARE, LOAD TEST/ROUND/LENGTHENEDRichard Henderson2013-01-051-186/+112
| | | | Signed-off-by: Richard Henderson <rth@twiddle.net>
* exec: move include files to include/exec/Paolo Bonzini2012-12-191-1/+1
| | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
* target-s390x: switch to AREG0 free modeBlue Swirl2012-09-101-2/+1
| | | | | | | | | | Add an explicit CPUState parameter instead of relying on AREG0. Remove temporary wrappers and switch to AREG0 free mode. Signed-off-by: Blue Swirl <blauwirbel@gmail.com> [agraf: fix conflicts] Signed-off-by: Alexander Graf <agraf@suse.de>
* target-s390x: avoid AREG0 for FPU helpersBlue Swirl2012-09-101-88/+96
| | | | | | | | | | Make FPU helpers take a parameter for CPUState instead of relying on global env. Introduce temporary wrappers for FPU load and store ops. Signed-off-by: Blue Swirl <blauwirbel@gmail.com> Signed-off-by: Alexander Graf <agraf@suse.de>
* target-s390x: split FPU opsBlue Swirl2012-09-101-0/+836
Move floating point instructions to fpu_helper.c. While exporting some condition code helpers, avoid duplicate identifier conflict with translate.c. Remove unused set_cc_nz_f64() in translate.c. Signed-off-by: Blue Swirl <blauwirbel@gmail.com> Signed-off-by: Alexander Graf <agraf@suse.de>
OpenPOWER on IntegriCloud