summaryrefslogtreecommitdiff
path: root/cpu/static_inst.cc
diff options
context:
space:
mode:
authorSteve Reinhardt <stever@eecs.umich.edu>2005-02-25 21:44:33 -0500
committerSteve Reinhardt <stever@eecs.umich.edu>2005-02-25 21:44:33 -0500
commit89dc94f3bc82b9acf9163d437ab132d74bca42d0 (patch)
treed18908c8ed740bb3533230c23d6418150732cfd1 /cpu/static_inst.cc
parentd697721f570add1dce1d96f76df09e44bb4b7a99 (diff)
downloadgem5-89dc94f3bc82b9acf9163d437ab132d74bca42d0.tar.xz
Make all StaticInst methods const. StaticInst objects represent a
particular binary machine instruction and should be immutable after they are constructed. cpu/simple_cpu/simple_cpu.hh: Make StaticInst parameters const. --HG-- extra : convert_revision : e535fa10c842ce173336323f39d9108c1847f8ba
Diffstat (limited to 'cpu/static_inst.cc')
-rw-r--r--cpu/static_inst.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpu/static_inst.cc b/cpu/static_inst.cc
index 7069d89ec..d522dbf5a 100644
--- a/cpu/static_inst.cc
+++ b/cpu/static_inst.cc
@@ -68,7 +68,7 @@ StaticInst<AlphaISA>::nullStaticInstPtr;
template <class ISA>
bool
-StaticInst<ISA>::hasBranchTarget(Addr pc, ExecContext *xc, Addr &tgt)
+StaticInst<ISA>::hasBranchTarget(Addr pc, ExecContext *xc, Addr &tgt) const
{
if (isDirectCtrl()) {
tgt = branchTarget(pc);