summaryrefslogtreecommitdiff
path: root/cpu/cpu_exec_context.cc
diff options
context:
space:
mode:
authorKevin Lim <ktlim@umich.edu>2006-03-08 15:10:47 -0500
committerKevin Lim <ktlim@umich.edu>2006-03-08 15:10:47 -0500
commit77e40756b723e6cf18462bbb15653792b5c90346 (patch)
treed4085e98e80593a0b3bf1ea20dacebf4c7b14158 /cpu/cpu_exec_context.cc
parent67732a7b2816929e41a52998c25eb008217041a5 (diff)
downloadgem5-77e40756b723e6cf18462bbb15653792b5c90346.tar.xz
Include ability to copy all misc regs.
arch/alpha/ev5.cc: Include function for the MiscRegFile to copy all of the Iprs from an ExecContext. arch/alpha/isa_traits.hh: Include functions to copy MiscRegs from an ExecContext. cpu/cpu_exec_context.cc: Be sure to copy all of the misc regs when copying all architectural state. --HG-- extra : convert_revision : cb948b5ff141ea0f739a1016f98236bd2a512f76
Diffstat (limited to 'cpu/cpu_exec_context.cc')
-rw-r--r--cpu/cpu_exec_context.cc10
1 files changed, 1 insertions, 9 deletions
diff --git a/cpu/cpu_exec_context.cc b/cpu/cpu_exec_context.cc
index 683d07787..b7238e73a 100644
--- a/cpu/cpu_exec_context.cc
+++ b/cpu/cpu_exec_context.cc
@@ -289,15 +289,7 @@ CPUExecContext::copyArchRegs(ExecContext *xc)
}
// Copy misc. registers
- setMiscReg(AlphaISA::Fpcr_DepTag, xc->readMiscReg(AlphaISA::Fpcr_DepTag));
- setMiscReg(AlphaISA::Uniq_DepTag, xc->readMiscReg(AlphaISA::Uniq_DepTag));
- setMiscReg(AlphaISA::Lock_Flag_DepTag,
- xc->readMiscReg(AlphaISA::Lock_Flag_DepTag));
- setMiscReg(AlphaISA::Lock_Addr_DepTag,
- xc->readMiscReg(AlphaISA::Lock_Addr_DepTag));
-
- // Also need to copy all the IPRs. Probably should just have a copy misc
- // regs function defined on the misc regs.
+ regs.miscRegs.copyMiscRegs(xc);
// Lastly copy PC/NPC
setPC(xc->readPC());