diff options
author | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-10-27 11:36:03 +0000 |
---|---|---|
committer | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-10-27 11:36:03 +0000 |
commit | ea361c3b7b0caa19013c1d3b6fa00b56b32040ed (patch) | |
tree | b491f192857e7d88be298e461940d7472ecfc83c /src/target/arm9tdmi.c | |
parent | d0626605ecc766d330bf33a451737cc43f4c4849 (diff) | |
download | riscv-openocd-ea361c3b7b0caa19013c1d3b6fa00b56b32040ed.zip riscv-openocd-ea361c3b7b0caa19013c1d3b6fa00b56b32040ed.tar.gz riscv-openocd-ea361c3b7b0caa19013c1d3b6fa00b56b32040ed.tar.bz2 |
Hongtao Zheng - add simulation because previous functions could not halt for instructions that next pc equal to the current pc.
git-svn-id: svn://svn.berlios.de/openocd/trunk@1105 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target/arm9tdmi.c')
-rw-r--r-- | src/target/arm9tdmi.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/target/arm9tdmi.c b/src/target/arm9tdmi.c index 69e9b79..89842d5 100644 --- a/src/target/arm9tdmi.c +++ b/src/target/arm9tdmi.c @@ -5,6 +5,9 @@ * Copyright (C) 2008 by Spencer Oliver * * spen@spen-soft.co.uk * * * + * Copyright (C) 2008 by Hongtao Zheng * + * hontor@126.com * + * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * @@ -841,7 +844,7 @@ void arm9tdmi_branch_resume_thumb(target_t *target) } -void arm9tdmi_enable_single_step(target_t *target) +void arm9tdmi_enable_single_step(target_t *target, u32 next_pc) { /* get pointers to arch-specific information */ armv4_5_common_t *armv4_5 = target->arch_info; @@ -854,7 +857,7 @@ void arm9tdmi_enable_single_step(target_t *target) } else { - arm7_9_enable_eice_step(target); + arm7_9_enable_eice_step(target, next_pc); } } |