riscv: use standard MSTATUS

This is no longer needed, since all in-tree platforms are only using
the standard mstatus formats. Remove it to avoid the complexity.

Signed-off-by: Olof Johansson <olof@lixom.net>
This commit is contained in:
Olof Johansson 2020-01-03 18:18:24 -08:00 committed by Anas Nashif
commit a6b3b616f5
11 changed files with 34 additions and 79 deletions

View file

@ -45,10 +45,10 @@ static inline void vexriscv_litex_irq_setie(u32_t ie)
{
if (ie) {
__asm__ volatile ("csrrs x0, mstatus, %0"
:: "r"(SOC_MSTATUS_IEN));
:: "r"(MSTATUS_IEN));
} else {
__asm__ volatile ("csrrc x0, mstatus, %0"
:: "r"(SOC_MSTATUS_IEN));
:: "r"(MSTATUS_IEN));
}
}