From: Andrew Waterman Date: Tue, 23 Apr 2013 08:00:20 +0000 (-0700) Subject: destroy htif on simulator termination X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=60a69f08bffb55e044a698e065242bdfd5b585ab;p=riscv-isa-sim.git destroy htif on simulator termination --- 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