From 60a69f08bffb55e044a698e065242bdfd5b585ab Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Tue, 23 Apr 2013 01:00:20 -0700 Subject: [PATCH] destroy htif on simulator termination --- riscv/sim.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/riscv/sim.h b/riscv/sim.h index 2676ba4..ed0bda9 100644 --- a/riscv/sim.h +++ b/riscv/sim.h @@ -5,6 +5,7 @@ #include #include +#include #include "processor.h" #include "mmu.h" @@ -31,7 +32,7 @@ public: reg_t get_scr(int which); private: - htif_isasim_t* htif; + std::auto_ptr htif; char* mem; // main memory size_t memsz; // memory size in bytes mmu_t* mmu; // debug port into main memory -- 2.30.2