fix single step of bx instruction going into Thumb mode

Without this fix, the following code cannot be single stepped:

	add	ip, pc, #1
	bx	ip
	[thumb code here]
This commit is contained in:
Nicolas Pitre 2009-10-19 15:49:46 -04:00 committed by Øyvind Harboe
parent 97166327db
commit 6726b78707
1 changed files with 1 additions and 1 deletions

View File

@ -358,7 +358,7 @@ int arm_simulate_step_core(target_t *target, uint32_t *dry_run_pc, struct arm_si
if (dry_run_pc)
{
*dry_run_pc = target;
*dry_run_pc = target & ~1;
return ERROR_OK;
}
else