X86: Only reset npc to reflect instruction length once.
authorGabe Black <gblack@eecs.umich.edu>
Mon, 14 Feb 2011 01:41:10 +0000 (17:41 -0800)
committerGabe Black <gblack@eecs.umich.edu>
Mon, 14 Feb 2011 01:41:10 +0000 (17:41 -0800)
commit5ee94f4a3dadda357c6d28b60c19b3638146f9a7
tree788669466677be1649fb84890428159f617c9daf
parentf036fd97481081afce7f757231ab69ba212f7f2a
X86: Only reset npc to reflect instruction length once.

When redirecting fetch to handle branches, the npc of the current pc state
needs to be left alone. This change makes the pc state record whether or not
the npc already reflects a real value by making it keep track of the current
instruction size, or if no size has been set.
src/arch/x86/predecoder.hh
src/arch/x86/types.hh