From be096f91b94ded36f43dd7d547a5671f99a264b1 Mon Sep 17 00:00:00 2001 From: Ali Saidi Date: Mon, 4 Apr 2011 11:42:27 -0500 Subject: ARM: Tag appropriate instructions as IsReturn --- src/arch/arm/isa/templates/pred.isa | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/arch/arm/isa/templates/pred.isa') diff --git a/src/arch/arm/isa/templates/pred.isa b/src/arch/arm/isa/templates/pred.isa index 2a4bd9dab..95c7c8e1b 100644 --- a/src/arch/arm/isa/templates/pred.isa +++ b/src/arch/arm/isa/templates/pred.isa @@ -107,6 +107,19 @@ def template DataRegConstructor {{ _srcRegIdx[_numSrcRegs++] = _destRegIdx[x]; } } + + if (%(is_branch)s){ + flags[IsControl] = true; + flags[IsIndirectControl] = true; + if (condCode == COND_AL || condCode == COND_UC) + flags[IsCondControl] = true; + else + flags[IsUncondControl] = true; + } + + if (%(is_ras_pop)s) { + flags[IsReturn] = true; + } } }}; -- cgit v1.2.3