cpu: Get rid of double in InstResult::MultiResult.
Change-Id: Ib02b0e270e0a4fdfa036c0a271ff9c3ce2a98342 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/49126 Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com> Maintainer: Giacomo Travaglini <giacomo.travaglini@arm.com> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
@@ -52,7 +52,6 @@ class InstResult
|
||||
union MultiResult
|
||||
{
|
||||
RegVal integer;
|
||||
double dbl;
|
||||
TheISA::VecRegContainer vector;
|
||||
TheISA::VecPredRegContainer pred;
|
||||
MultiResult() {}
|
||||
@@ -81,10 +80,10 @@ class InstResult
|
||||
{
|
||||
static_assert(std::is_integral_v<T> ^ std::is_floating_point_v<T>,
|
||||
"Parameter type is neither integral nor fp, or it is both");
|
||||
if (std::is_integral_v<T>) {
|
||||
if constexpr (std::is_integral_v<T>) {
|
||||
result.integer = i;
|
||||
} else if (std::is_floating_point_v<T>) {
|
||||
result.dbl = i;
|
||||
} else if constexpr (std::is_floating_point_v<T>) {
|
||||
result.integer = floatToBits(i);
|
||||
}
|
||||
}
|
||||
/** Vector result. */
|
||||
|
||||
Reference in New Issue
Block a user