From 614902fd205a1640ef9aeb7db3b75be3622d485b Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Mon, 25 Mar 2013 19:57:57 -0700 Subject: [PATCH] support compilation with gcc 4.7 --- riscv/cachesim.h | 2 +- riscv/decode.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/riscv/cachesim.h b/riscv/cachesim.h index d5dcf38..96631a0 100644 --- a/riscv/cachesim.h +++ b/riscv/cachesim.h @@ -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(); diff --git a/riscv/decode.h b/riscv/decode.h index 202541f..fd3b292 100644 --- a/riscv/decode.h +++ b/riscv/decode.h @@ -3,6 +3,7 @@ #define __STDC_LIMIT_MACROS #include +#include #include "pcr.h" #include "config.h" -- 2.30.2