From: Andrew Waterman Date: Tue, 26 Mar 2013 02:57:57 +0000 (-0700) Subject: support compilation with gcc 4.7 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=614902fd205a1640ef9aeb7db3b75be3622d485b;p=riscv-isa-sim.git support compilation with gcc 4.7 --- 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"