From: Ali Saidi Date: Fri, 29 Jun 2012 15:18:29 +0000 (-0400) Subject: ARM: Fix identification of one RAS pop instruction. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=71daeb0b2b390f5f5a34addd3993f28851c91d72;p=gem5.git ARM: Fix identification of one RAS pop instruction. The check should be with the op2 field, not with the op1 field. --- diff --git a/src/arch/arm/isa/insts/data.isa b/src/arch/arm/isa/insts/data.isa index 89c0e48c7..97ae7d0c0 100644 --- a/src/arch/arm/isa/insts/data.isa +++ b/src/arch/arm/isa/insts/data.isa @@ -293,7 +293,7 @@ let {{ buildDataInst("orr", "Dest = resTemp = Op1 | secondOp;") buildDataInst("orn", "Dest = resTemp = Op1 | ~secondOp;", aiw = False) buildDataInst("mov", "Dest = resTemp = secondOp;", regRegAiw = False, - isRasPop = "op1 == INTREG_LR", isBranch = "dest == INTREG_PC") + isRasPop = "op2 == INTREG_LR", isBranch = "dest == INTREG_PC") buildDataInst("bic", "Dest = resTemp = Op1 & ~secondOp;") buildDataInst("mvn", "Dest = resTemp = ~secondOp;") buildDataInst("movt", diff --git a/src/arch/arm/isa/templates/pred.isa b/src/arch/arm/isa/templates/pred.isa index efb8e470b..88e8fecd1 100644 --- a/src/arch/arm/isa/templates/pred.isa +++ b/src/arch/arm/isa/templates/pred.isa @@ -115,11 +115,12 @@ def template DataRegConstructor {{ flags[IsUncondControl] = true; else flags[IsCondControl] = true; - } - if (%(is_ras_pop)s) { - flags[IsReturn] = true; + if (%(is_ras_pop)s) { + flags[IsReturn] = true; + } } + } }};