diff options
author | Kevin Lim <ktlim@umich.edu> | 2006-06-12 19:15:14 -0400 |
---|---|---|
committer | Kevin Lim <ktlim@umich.edu> | 2006-06-12 19:15:14 -0400 |
commit | 6ee38f143ec8796b819a1db901828a4903607c19 (patch) | |
tree | a7f7ac29babe4f3eb483d2409eb099ed3bb888e8 /src/arch/alpha/ev5.cc | |
parent | 841d0b9d40446160fdc1e073e16f9bd7b6501911 (diff) | |
parent | b5cf61efad0acab998b17623ebb00f67cb1f6d50 (diff) | |
download | gem5-6ee38f143ec8796b819a1db901828a4903607c19.tar.xz |
Merge ktlim@zizzer:/bk/newmem
into zizzer.eecs.umich.edu:/.automount/zamp/z/ktlim2/clean/newmem-merge
--HG--
extra : convert_revision : 349dbc2a39eba7fa5019c811123a643a41fdc6ff
Diffstat (limited to 'src/arch/alpha/ev5.cc')
-rw-r--r-- | src/arch/alpha/ev5.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/arch/alpha/ev5.cc b/src/arch/alpha/ev5.cc index 7d6894733..ae3b668ea 100644 --- a/src/arch/alpha/ev5.cc +++ b/src/arch/alpha/ev5.cc @@ -59,8 +59,12 @@ AlphaISA::initCPU(ThreadContext *tc, int cpuId) tc->setIntReg(16, cpuId); tc->setIntReg(0, cpuId); - tc->setPC(tc->readMiscReg(IPR_PAL_BASE) + (new ResetFault)->vect()); + AlphaFault *reset = new ResetFault; + + tc->setPC(tc->readMiscReg(IPR_PAL_BASE) + reset->vect()); tc->setNextPC(tc->readPC() + sizeof(MachInst)); + + delete reset; } //////////////////////////////////////////////////////////////////////// |