support compilation with gcc 4.7
authorAndrew Waterman <waterman@cs.berkeley.edu>
Tue, 26 Mar 2013 02:57:57 +0000 (19:57 -0700)
committerAndrew Waterman <waterman@cs.berkeley.edu>
Tue, 26 Mar 2013 02:57:57 +0000 (19:57 -0700)
riscv/cachesim.h
riscv/decode.h

index d5dcf38930e0dfeac1933fba51de8068075e6bc2..96631a0d5abc382af0737af1ed2c59e27b70ff1e 100644 (file)
@@ -22,7 +22,7 @@ class cache_sim_t
  public:
   cache_sim_t(size_t sets, size_t ways, size_t linesz, const char* name);
   cache_sim_t(const cache_sim_t& rhs);
-  ~cache_sim_t();
+  virtual ~cache_sim_t();
 
   void access(uint64_t addr, size_t bytes, bool store);
   void print_stats();
index 202541fbc79cb6539320585be0ac682a08b5fa09..fd3b2923a7b57430bcf3ee7f4e47ea3c89f9727f 100644 (file)
@@ -3,6 +3,7 @@
 
 #define __STDC_LIMIT_MACROS
 #include <stdint.h>
+#include <string.h>
 #include "pcr.h"
 #include "config.h"