projects
/
riscv-isa-sim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c43f02f
)
destroy htif on simulator termination
author
Andrew Waterman
<waterman@cs.berkeley.edu>
Tue, 23 Apr 2013 08:00:20 +0000
(
01:00
-0700)
committer
Andrew Waterman
<waterman@cs.berkeley.edu>
Tue, 23 Apr 2013 08:00:20 +0000
(
01:00
-0700)
riscv/sim.h
patch
|
blob
|
history
diff --git
a/riscv/sim.h
b/riscv/sim.h
index 2676ba4630fca844992082d18c5bcc5fc9f36f7c..ed0bda96276d3fa7c3c1c5969038e4f8a054dbbe 100644
(file)
--- a/
riscv/sim.h
+++ b/
riscv/sim.h
@@
-5,6
+5,7
@@
#include <vector>
#include <string>
+#include <memory>
#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_isasim_t>
htif;
char* mem; // main memory
size_t memsz; // memory size in bytes
mmu_t* mmu; // debug port into main memory