target/arm: make 'arm core_state' command compatible with Cortex-M