summaryrefslogtreecommitdiff
path: root/src/arch/sparc/isa.hh
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2010-10-10 20:38:05 -0700
committerGabe Black <gblack@eecs.umich.edu>2010-10-10 20:38:05 -0700
commit157d6f9c2fb203dd95fe53c3481e851ea55272ef (patch)
tree8768e64c9c290a4b159b3bebe4d7dbbce20529c3 /src/arch/sparc/isa.hh
parent63fa65613eb654e819721930782a13f1177f31c2 (diff)
downloadgem5-157d6f9c2fb203dd95fe53c3481e851ea55272ef.tar.xz
SPARC: Make SPARC's ISA's clear function initialize everything it should.
Also make it not set some pointers to NULL potentially introducing a memory leak. That should be done in the constructor.
Diffstat (limited to 'src/arch/sparc/isa.hh')
-rw-r--r--src/arch/sparc/isa.hh6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/arch/sparc/isa.hh b/src/arch/sparc/isa.hh
index 9b4fd50d0..5fe57773c 100644
--- a/src/arch/sparc/isa.hh
+++ b/src/arch/sparc/isa.hh
@@ -205,6 +205,12 @@ namespace SparcISA
ISA()
{
+#if FULL_SYSTEM
+ tickCompare = NULL;
+ sTickCompare = NULL;
+ hSTickCompare = NULL;
+#endif
+
clear();
}
};