summaryrefslogtreecommitdiff
path: root/src/arch/alpha/utility.hh
diff options
context:
space:
mode:
authorKevin Lim <ktlim@umich.edu>2006-11-02 13:11:38 -0500
committerKevin Lim <ktlim@umich.edu>2006-11-02 13:11:38 -0500
commitccaf80cc46fb86639ab5ee166baca08277f5450f (patch)
treeca8ebf28f3092a5f5d06748b31a8dda66d106ee3 /src/arch/alpha/utility.hh
parentf763864786d7b95d46fba6f37e1e9ed601b60733 (diff)
downloadgem5-ccaf80cc46fb86639ab5ee166baca08277f5450f.tar.xz
Use ISA specific makeExtMI.
src/arch/alpha/utility.hh: For now makeExtMI will be specific to the ISA. --HG-- extra : convert_revision : 89959c6499efcc3df9301ad8ea039580764a1496
Diffstat (limited to 'src/arch/alpha/utility.hh')
-rw-r--r--src/arch/alpha/utility.hh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/arch/alpha/utility.hh b/src/arch/alpha/utility.hh
index 0304d1c3a..cb86c7e9e 100644
--- a/src/arch/alpha/utility.hh
+++ b/src/arch/alpha/utility.hh
@@ -43,11 +43,11 @@ namespace AlphaISA
{
static inline ExtMachInst
- makeExtMI(MachInst inst, ThreadContext * xc) {
+ makeExtMI(MachInst inst, Addr pc) {
#if FULL_SYSTEM
ExtMachInst ext_inst = inst;
- if (xc->readPC() && 0x1)
- return ext_inst|=(static_cast<ExtMachInst>(xc->readPC() & 0x1) << 32);
+ if (pc && 0x1)
+ return ext_inst|=(static_cast<ExtMachInst>(pc & 0x1) << 32);
else
return ext_inst;
#else