summaryrefslogtreecommitdiff
path: root/src/arch/arm/isa/templates
diff options
context:
space:
mode:
authorMitch Hayenga <mitch.hayenga@arm.com>2014-09-03 07:42:40 -0400
committerMitch Hayenga <mitch.hayenga@arm.com>2014-09-03 07:42:40 -0400
commit476c6fe36884ac435ca2f14eee79d5019d4f554f (patch)
treeb4b902dc10c4859bfbaf37efa7110b1e69c8690f /src/arch/arm/isa/templates
parent4f13f676aa71efaaae2fcd2587cf032a1d70f774 (diff)
downloadgem5-476c6fe36884ac435ca2f14eee79d5019d4f554f.tar.xz
arm: Mark v7 cbz instructions as direct branches
v7 cbz/cbnz instructions were improperly marked as indirect branches.
Diffstat (limited to 'src/arch/arm/isa/templates')
-rw-r--r--src/arch/arm/isa/templates/branch.isa6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/arch/arm/isa/templates/branch.isa b/src/arch/arm/isa/templates/branch.isa
index c8efdb7a6..92c566726 100644
--- a/src/arch/arm/isa/templates/branch.isa
+++ b/src/arch/arm/isa/templates/branch.isa
@@ -1,6 +1,6 @@
// -*- mode:c++ -*-
-// Copyright (c) 2010 ARM Limited
+// Copyright (c) 2010, 2014 ARM Limited
// All rights reserved
//
// The license below extends only to copyright in the software and shall
@@ -212,6 +212,10 @@ class %(class_name)s : public %(base_class)s
%(class_name)s(ExtMachInst machInst,
int32_t imm, IntRegIndex _op1);
%(BasicExecDeclare)s
+ ArmISA::PCState branchTarget(const ArmISA::PCState &branchPC) const;
+
+ /// Explicitly import the otherwise hidden branchTarget
+ using StaticInst::branchTarget;
};
}};