Adding semihosting support for bmsp
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
int sh_missing_host = 0;
|
||||
|
||||
void trap()
|
||||
{
|
||||
{ //ToDo: Check why macro CSR_MEPC and others are not resolved
|
||||
uint32_t mepc = read_csr(0x341); // Address of trap
|
||||
uint32_t mtval = read_csr(0x343); // Instruction value of trap
|
||||
uint32_t mcause = read_csr(0x342); // Reason for the trap
|
||||
|
||||
Reference in New Issue
Block a user