arch: Make the advance() method virtual and in PCStateBase.

It's occasionally necessary to advance the PC to the next instruction
without having an instruction to do it with. This makes it available
without having to cast to a PCState subclass.

Change-Id: I3b7d94afdfb27b34279e58158782e87ab5066a37
Tested-by: kokoro <>
Maintainer: Gabe Black <>
Reviewed-by: Daniel Carvalho <>
5 files changed