[aarch64-port-dev ] Simulator: Correct return types of dmem and qmem

Andrew Haley aph at redhat.com
Mon Dec 30 06:16:28 PST 2013


FYI.  This might explain a few floating-point failures.

Andrew.


# HG changeset patch
# User aph
# Date 1388412897 0
# Node ID 18c2ed5305dd430eee0b0cd415353b0e5226cb49
# Parent  a2fafeaf271edb73b94e3ea0054fe8a35f64a39d
Correct return types of dmem and qmem

diff -r a2fafeaf271e -r 18c2ed5305dd simulator.hpp
--- a/simulator.hpp	Thu Dec 12 12:20:52 2013 +0000
+++ b/simulator.hpp	Mon Dec 30 14:14:57 2013 +0000
@@ -218,8 +218,8 @@
 // Floating memory read and update

   inline float smem(u_int64_t address) { return memory->loadS(address); }
-  inline float dmem(u_int64_t address) { return memory->loadD(address); }
-  inline float qmem(u_int64_t address) { return memory->loadQ(address); }
+  inline double dmem(u_int64_t address) { return memory->loadD(address); }
+  inline long double qmem(u_int64_t address) { return memory->loadQ(address); }

   inline void smem_set(u_int64_t address, float value) { return memory->storeS(address, value); }
   inline void dmem_set(u_int64_t address, double value) { return memory->storeD(address, value); }


More information about the aarch64-port-dev mailing list