tohost is not required in hifive1 env

This commit is contained in:
2023-10-16 13:04:11 +02:00
parent 4c86ddd9fb
commit 619be720d3
3 changed files with 4 additions and 1 deletions

View File

@ -5,7 +5,7 @@ ENTRY( _start )
MEMORY
{
flash (rxai!w) : ORIGIN = 0x20400000, LENGTH = 512M
ram (wxa!ri) : ORIGIN = 0x80000000, LENGTH = 512K
ram (wxa!ri) : ORIGIN = 0x80000000, LENGTH = 1M
}
PHDRS

View File

@ -6,6 +6,7 @@
// Some things missing from the official encoding.h
#define MCAUSE_INT 0x80000000
#define MCAUSE_CAUSE 0x7FFFFFFF
#define USE_TOHOST 1
#include "rtl/const.h"
/****************************************************************************