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:
parent
19ac87c4f0
commit
a6b3b616f5
11 changed files with 34 additions and 79 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue