diff options
Diffstat (limited to 'cpu/beta_cpu/ras.cc')
-rw-r--r-- | cpu/beta_cpu/ras.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cpu/beta_cpu/ras.cc b/cpu/beta_cpu/ras.cc index ca05f5a0d..23ca45b3a 100644 --- a/cpu/beta_cpu/ras.cc +++ b/cpu/beta_cpu/ras.cc @@ -4,7 +4,10 @@ ReturnAddrStack::ReturnAddrStack(unsigned _numEntries) : numEntries(_numEntries), usedEntries(0), tos(0) { - addrStack = new Addr[numEntries](0); + addrStack = new Addr[numEntries]; + + for (int i = 0; i < numEntries; ++i) + addrStack[i] = 0; } void |