arm: Fixes based on UBSan and static analysis
[gem5.git] / src / cpu / base.cc
index 2f4745ee3649c48c3daff76b400b99731457a3c2..4ab504379389e4abbc626c8bd13e539ae1c55274 100644 (file)
@@ -126,6 +126,8 @@ BaseCPU::BaseCPU(Params *p, bool is_checker)
       _switchedOut(p->switched_out), _cacheLineSize(p->system->cacheLineSize()),
       interrupts(p->interrupts), profileEvent(NULL),
       numThreads(p->numThreads), system(p->system),
+      functionTraceStream(nullptr), currentFunctionStart(0),
+      currentFunctionEnd(0), functionEntryTick(0),
       addressMonitor()
 {
     // if Python did not provide a valid ID, do it here