diff options
author | Korey Sewell <ksewell@umich.edu> | 2006-05-11 03:26:19 -0400 |
---|---|---|
committer | Korey Sewell <ksewell@umich.edu> | 2006-05-11 03:26:19 -0400 |
commit | 80dee53b0430f829e8f9aff1a68c62e113f3ce24 (patch) | |
tree | bf8a7dd80abaebcbadc9908207e379f99bdc15fa /arch/mips/isa_traits.cc | |
parent | c552b06a8caed6fe5ba8393b4c2f7e2199742bee (diff) | |
download | gem5-80dee53b0430f829e8f9aff1a68c62e113f3ce24.tar.xz |
Fixes for Paired-Single FP Compare Operations...
Now all the variations of FP should be implemented correctly in the decoder.
The new formats and functions supporting these functions need to be implemented for
some of the FP stuff but for the most part things are looking like their "supposed to"...
arch/mips/isa/decoder.isa:
Fixes for Paired-Single FP Compare Operations...
Now all the variations of FP should be implemented correctly in the decoder.
arch/mips/isa/formats/fp.isa:
Add new PS formats
arch/mips/isa_traits.cc:
Add skeleton overloaded round & truncate functions
arch/mips/isa_traits.hh:
declare overloaded functions
--HG--
extra : convert_revision : 15d5cf7b08ac2dc9ebcd6b268e92d4abffdd8597
Diffstat (limited to 'arch/mips/isa_traits.cc')
-rw-r--r-- | arch/mips/isa_traits.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/mips/isa_traits.cc b/arch/mips/isa_traits.cc index 05499f4dc..19ef46291 100644 --- a/arch/mips/isa_traits.cc +++ b/arch/mips/isa_traits.cc @@ -102,6 +102,12 @@ MipsISA::roundFP(float val) return 1.5; } +float +MipsISA::roundFP(uint64_t val) +{ + return 1.5; +} + double MipsISA::roundFP(double val) { @@ -121,6 +127,13 @@ MipsISA::truncFP(float val) } double +MipsISA::truncFP(uint64_t val) +{ + int trunc_val = (int) val; + return (double) trunc_val; +} + +double MipsISA::truncFP(double val) { int trunc_val = (int) val; |