diff options
Diffstat (limited to 'cpu/base_dyn_inst.hh')
-rw-r--r-- | cpu/base_dyn_inst.hh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cpu/base_dyn_inst.hh b/cpu/base_dyn_inst.hh index 01f6be185..6333a1fb1 100644 --- a/cpu/base_dyn_inst.hh +++ b/cpu/base_dyn_inst.hh @@ -200,7 +200,7 @@ class BaseDynInst : public FastAlloc, public RefCounted union Result { uint64_t integer; - float fp; +// float fp; double dbl; }; @@ -394,7 +394,7 @@ class BaseDynInst : public FastAlloc, public RefCounted uint64_t readIntResult() { return instResult.integer; } /** Returns the result of a floating point instruction. */ - float readFloatResult() { return instResult.fp; } + float readFloatResult() { return (float)instResult.dbl; } /** Returns the result of a floating point (double) instruction. */ double readDoubleResult() { return instResult.dbl; } @@ -406,7 +406,8 @@ class BaseDynInst : public FastAlloc, public RefCounted void setFloatRegSingle(const StaticInst *si, int idx, float val) { - instResult.fp = val; +// instResult.fp = val; + instResult.dbl = (double)val; } void setFloatRegDouble(const StaticInst *si, int idx, double val) |