ARM: Fix issue with predicted next pc being wrong because of advance() ordering.
authorAli Saidi <Ali.Saidi@ARM.com>
Fri, 29 Jun 2012 15:18:28 +0000 (11:18 -0400)
committerAli Saidi <Ali.Saidi@ARM.com>
Fri, 29 Jun 2012 15:18:28 +0000 (11:18 -0400)
commitaed8050824793a25afe0e4dab30cbebc7d6b9083
treea756132de24938dcf135c686b233d6c04af87426
parentc51fc5ceffd19c62c2895fb3444a532e9fe0f3ca
ARM: Fix issue with predicted next pc being wrong because of advance() ordering.

npc in PCState for ARM was being calculated before the current flags were
updated with the next flags. This causes an issue as the npc is incremented by
two or four depending on the current flags (thumb or not) and was leading to
branches that were predicted correctly being identified as mispredicted.
src/arch/arm/types.hh