Skip to content
This repository has been archived by the owner on Sep 28, 2019. It is now read-only.

Commit

Permalink
riscv_semihosting: cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
ilg-ul committed Jan 23, 2018
1 parent cdabbfa commit 20463c2
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/target/riscv/riscv_semihosting.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,19 +106,6 @@ int riscv_semihosting(struct target *target, int *retval)
if (pre != 0x01f01013 || ebreak != 0x00100073 || post != 0x40705013) {

/* Not the magic sequence defining semihosting. */

// Disabled, wrong place.
#if 0
/* Adjust return address for regular EBREAKs. */
if (ebreak == 0x00100073) {
; // riscv_set_register(target, GDB_REGNO_PC, dpc + 4);
} else {
uint16_t c_ebreak = target_buffer_get_u16(target, tmp + 4);
if (c_ebreak == 0x9002) {
riscv_set_register(target, GDB_REGNO_PC, dpc + 2);
}
}
#endif
return 0;
}

Expand Down

0 comments on commit 20463c2

Please sign in to comment.