semihosting: print the semihosting operation id
Change-Id: If5c3568bd1c99a48ac492137f48da0d9764efe14 Signed-off-by: Adrian Negreanu <adrian.negreanu@nxp.com> Reviewed-on: http://openocd.zylin.com/5923 Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-by: Jonathan McDowell <noodles-openocd@earth.li> Reviewed-by: Tim Newsome <tim@sifive.com>
This commit is contained in:
parent
9cce6b3c76
commit
850e85fa6f
|
@ -315,7 +315,7 @@ int arm_semihosting(struct target *target, int *retval)
|
||||||
if (0 <= semihosting->op && semihosting->op <= 0x31) {
|
if (0 <= semihosting->op && semihosting->op <= 0x31) {
|
||||||
*retval = semihosting_common(target);
|
*retval = semihosting_common(target);
|
||||||
if (*retval != ERROR_OK) {
|
if (*retval != ERROR_OK) {
|
||||||
LOG_ERROR("Failed semihosting operation");
|
LOG_ERROR("Failed semihosting operation (0x%02X)", semihosting->op);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -140,7 +140,7 @@ semihosting_result_t riscv_semihosting(struct target *target, int *retval)
|
||||||
if (0 <= semihosting->op && semihosting->op <= 0x31) {
|
if (0 <= semihosting->op && semihosting->op <= 0x31) {
|
||||||
*retval = semihosting_common(target);
|
*retval = semihosting_common(target);
|
||||||
if (*retval != ERROR_OK) {
|
if (*retval != ERROR_OK) {
|
||||||
LOG_ERROR("Failed semihosting operation");
|
LOG_ERROR("Failed semihosting operation (0x%02X)", semihosting->op);
|
||||||
return SEMI_ERROR;
|
return SEMI_ERROR;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue