diff options
Diffstat (limited to 'src/arch/arm/insts/vfp.cc')
-rw-r--r-- | src/arch/arm/insts/vfp.cc | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/arch/arm/insts/vfp.cc b/src/arch/arm/insts/vfp.cc index f72fba675..7056f8491 100644 --- a/src/arch/arm/insts/vfp.cc +++ b/src/arch/arm/insts/vfp.cc @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010-2013 ARM Limited + * Copyright (c) 2010-2013, 2019 ARM Limited * All rights reserved * * The license below extends only to copyright in the software and shall @@ -891,6 +891,17 @@ unsignedRecipEstimate(uint32_t op) } } +FPSCR +fpStandardFPSCRValue(const FPSCR &fpscr) +{ + FPSCR new_fpscr(0); + new_fpscr.ahp = fpscr.ahp; + new_fpscr.dn = 1; + new_fpscr.fz = 1; + new_fpscr.fz16 = fpscr.fz16; + return new_fpscr; +}; + template <class fpType> fpType FpOp::processNans(FPSCR &fpscr, bool &done, bool defaultNan, |