summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKorey Sewell <ksewell@umich.edu>2011-06-10 22:15:32 -0400
committerKorey Sewell <ksewell@umich.edu>2011-06-10 22:15:32 -0400
commit4229bce89d6683679fae3ebbeda3ef675f73069f (patch)
tree4b8a0a2f8984e7f7897915b361a184944ca29444
parenta3862d4c593bfe2d8660035d8fe4f1f2985addac (diff)
downloadgem5-4229bce89d6683679fae3ebbeda3ef675f73069f.tar.xz
sparc: don't use directcntrl branch flag
this flag is only used for early branch resolution in the O3 model (of pc-relative branches) but this isnt cleanly working even when the branch target code is added for sparc. For now, we'll ignore this optimization and add a todo in the SPARC ISA for future developers
-rw-r--r--src/arch/sparc/isa/formats/branch.isa5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/arch/sparc/isa/formats/branch.isa b/src/arch/sparc/isa/formats/branch.isa
index 014c0d486..b34704f06 100644
--- a/src/arch/sparc/isa/formats/branch.isa
+++ b/src/arch/sparc/isa/formats/branch.isa
@@ -262,8 +262,9 @@ def format Branch(code, *opt_flags) {{
let {{
def doBranch(name, Name, base, cond,
code, annul_code, fail, annul_fail, opt_flags):
- if "IsIndirectControl" not in opt_flags:
- opt_flags += ('IsDirectControl', )
+ #@todo: add flags and branchTarget() for DirectCntrl branches
+ # the o3 model can take advantage of this annotation if
+ # done correctly
iop = InstObjParams(name, Name, base,
{"code": code,