summaryrefslogtreecommitdiff
path: root/src/arch/alpha
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2006-09-30 02:55:21 -0400
committerGabe Black <gblack@eecs.umich.edu>2006-09-30 02:55:21 -0400
commit76708a9a6c85ef88259e849220bde511e356fcf8 (patch)
treeb889a410f7d4d8f4938fd5476406ad091e101a0e /src/arch/alpha
parent51425382ca079290411e033acc8cf14dde36c82b (diff)
downloadgem5-76708a9a6c85ef88259e849220bde511e356fcf8.tar.xz
Changed makeExtMI to take a ThreadContext instead of a pc.
--HG-- extra : convert_revision : e5b200e4e053702fc703f44149d18ce48ac4eaa6
Diffstat (limited to 'src/arch/alpha')
-rw-r--r--src/arch/alpha/utility.hh7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/arch/alpha/utility.hh b/src/arch/alpha/utility.hh
index d3ccc0444..0304d1c3a 100644
--- a/src/arch/alpha/utility.hh
+++ b/src/arch/alpha/utility.hh
@@ -37,16 +37,17 @@
#include "arch/alpha/isa_traits.hh"
#include "arch/alpha/regfile.hh"
#include "base/misc.hh"
+#include "cpu/thread_context.hh"
namespace AlphaISA
{
static inline ExtMachInst
- makeExtMI(MachInst inst, const uint64_t &pc) {
+ makeExtMI(MachInst inst, ThreadContext * xc) {
#if FULL_SYSTEM
ExtMachInst ext_inst = inst;
- if (pc && 0x1)
- return ext_inst|=(static_cast<ExtMachInst>(pc & 0x1) << 32);
+ if (xc->readPC() && 0x1)
+ return ext_inst|=(static_cast<ExtMachInst>(xc->readPC() & 0x1) << 32);
else
return ext_inst;
#else