Add support for the SYS_WRITEC semihosting operation.

This is implemented in the same manner as QEMU semihosting
support, specifically, a SYS_WRITEC results in a single
character write to STDERR.
This commit is contained in:
Benno Leslie 2013-09-15 19:15:49 +10:00 committed by Gareth McMullin
부모 b8f9a2ed4b
커밋 3cce6f472c
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제

파일 보기

@ -989,6 +989,9 @@ static int cortexm_hostio_request(target *t)
gdb_putpacket_f("Fwrite,%08X,%08X,%08X",
params[0] - 1, params[1], params[2]);
break;
case SYS_WRITEC: /* writec */
gdb_putpacket_f("Fwrite,2,%08X,1", arm_regs[1]);
break;
case SYS_ISTTY: /* isatty */
gdb_putpacket_f("Fisatty,%08X", params[0] - 1);
break;