Fix compile error.

--HG--
extra : convert_revision : 334f5033f5a3a303bfaec3a3acfbd36f205efe86
This commit is contained in:
Kevin Lim
2006-06-12 18:59:24 -04:00
parent 5639fb2c43
commit fbf3a82c5c

View File

@@ -111,7 +111,7 @@ output header {{
{
}
Addr branchTarget(ExecContext *xc) const;
Addr branchTarget(ThreadContext *tc) const;
std::string
generateDisassembly(Addr pc, const SymbolTable *symtab) const;
@@ -132,10 +132,10 @@ output decoder {{
}
Addr
Jump::branchTarget(ExecContext *xc) const
Jump::branchTarget(ThreadContext *tc) const
{
Addr NPC = xc->readPC() + 4;
uint64_t Rb = xc->readIntReg(_srcRegIdx[0]);
Addr NPC = tc->readPC() + 4;
uint64_t Rb = tc->readIntReg(_srcRegIdx[0]);
return (Rb & ~3) | (NPC & 1);
}