speed up compilation a bit
authorAndrew Waterman <waterman@eecs.berkeley.edu>
Sat, 15 Mar 2014 23:48:16 +0000 (16:48 -0700)
committerAndrew Waterman <waterman@eecs.berkeley.edu>
Sat, 15 Mar 2014 23:48:16 +0000 (16:48 -0700)
riscv/processor.cc
riscv/processor.h

index e931c6b346cc3d99d3639f7fc061bebc5dede131..39848b48c991d3440689bf91eb37aac6d171cd62 100644 (file)
@@ -32,6 +32,7 @@ processor_t::processor_t(sim_t* _sim, mmu_t* _mmu, uint32_t _id)
 
 processor_t::~processor_t()
 {
+  delete disassembler;
 }
 
 void state_t::reset()
index 9e52d3d176a91ebeeb1faa1d427951edbf00e54b..e2847faefaf1ff60ff890d95ad0521502f8f00a3 100644 (file)
@@ -5,7 +5,6 @@
 #include "decode.h"
 #include "config.h"
 #include <cstring>
-#include <memory>
 #include <vector>
 
 class processor_t;
@@ -80,7 +79,7 @@ private:
   sim_t* sim;
   mmu_t* mmu; // main memory is always accessed via the mmu
   extension_t* ext;
-  std::unique_ptr<disassembler_t> disassembler;
+  disassembler_t* disassembler;
   state_t state;
   uint32_t id;
   bool run; // !reset