sim: fix for mani's ubuntu gcc
[calu.git] / 3b_sim / cmem.hpp
index 8e348c7f7f49a203280c249c2665367e853dca89..09f42937dc899b305309ba6148cd197d04739df6 100644 (file)
@@ -28,7 +28,7 @@ public:
        /* doesn't align, user has to do */
        void setDirect(const MEMORY_ADDRESS address, const T data);
        T getDirect(const MEMORY_ADDRESS address) const;
-       CMem(int size) : MAX_MEMORY(size), m_memory(size) {};
+       CMem(int size) : MAX_MEMORY(size), m_memory(size,(T)NULL) {};
 };
 
 #endif