diff options
author | Steven Stallion <stallion@squareup.com> | 2016-07-22 15:43:11 -0500 |
---|---|---|
committer | Paul Fertser <fercerpav@gmail.com> | 2016-12-08 12:32:58 +0000 |
commit | c0e7ccbd87cf491b065bf18bbdb6a73b741c2698 (patch) | |
tree | 45c8c4311f61b1990a1dca7f00a499aea3d28302 /src/target/arm9tdmi.c | |
parent | dc0a009ef411e323f7626000dfe2c0dfd1b044e5 (diff) | |
download | riscv-openocd-c0e7ccbd87cf491b065bf18bbdb6a73b741c2698.zip riscv-openocd-c0e7ccbd87cf491b065bf18bbdb6a73b741c2698.tar.gz riscv-openocd-c0e7ccbd87cf491b065bf18bbdb6a73b741c2698.tar.bz2 |
semihosting: support fileio operation
This patch adds support for bridging semihosting to GDB's File-I/O
remote protocol extension. For the most part operations match up 1:1,
however some require a working area to complete successfully, namely
operations that devolve to read, stat, and gettimeofday.
A new command was added to enable support for fileio named `arm
semihosting_fileio`, which ensures that the default behavior remains
intact for those that prefer it.
Finally, redundant logging was removed from the target_arch_state
function; this permits ARM targets to quiesce log output when polling
for a fileio reply. This prevents filling the logs with halt/resume
messages when using semihosting fileio.
Change-Id: Ifbb864fc2373336a501cc0332675b887b552e1ee
Signed-off-by: Steven Stallion <stallion@squareup.com>
Reviewed-on: http://openocd.zylin.com/3566
Tested-by: jenkins
Reviewed-by: Steven Stallion <sstallion@gmail.com>
Reviewed-by: Paul Fertser <fercerpav@gmail.com>
Diffstat (limited to 'src/target/arm9tdmi.c')
-rw-r--r-- | src/target/arm9tdmi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/target/arm9tdmi.c b/src/target/arm9tdmi.c index eed965a..82b430f 100644 --- a/src/target/arm9tdmi.c +++ b/src/target/arm9tdmi.c @@ -30,6 +30,7 @@ #include "target_type.h" #include "register.h" #include "arm_opcodes.h" +#include "arm_semihosting.h" /* * NOTE: this holds code that's used with multiple ARM9 processors: @@ -714,6 +715,7 @@ int arm9tdmi_init_target(struct command_context *cmd_ctx, struct target *target) { arm9tdmi_build_reg_cache(target); + arm_semihosting_init(target); return ERROR_OK; } |