mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
software/libbase/isr.c: Simplify using __riscv_plic__ define.
This commit is contained in:
parent
c79e1ef95f
commit
e03b097e8e
4 changed files with 4 additions and 1 deletions
|
@ -89,6 +89,7 @@ class OpenC906(CPU):
|
|||
flags = "-mno-save-restore "
|
||||
flags += "-march=rv64gc -mabi=lp64d "
|
||||
flags += "-D__openc906__ "
|
||||
flags += "-D__riscv_plic__ "
|
||||
flags += "-mcmodel=medany"
|
||||
return flags
|
||||
|
||||
|
|
|
@ -113,6 +113,7 @@ class Rocket(CPU):
|
|||
flags = "-mno-save-restore "
|
||||
flags += f"-march={self.get_arch(self.variant)} -mabi=lp64 "
|
||||
flags += "-D__rocket__ "
|
||||
flags += "-D__riscv_plic__ "
|
||||
flags += "-mcmodel=medany"
|
||||
return flags
|
||||
|
||||
|
|
|
@ -169,6 +169,7 @@ class VexRiscvSMP(CPU):
|
|||
def gcc_flags(self):
|
||||
flags = f" -march={VexRiscvSMP.get_arch()} -mabi={VexRiscvSMP.get_abi()}"
|
||||
flags += f" -D__vexriscv_smp__"
|
||||
flags += f" -D__riscv_plic__"
|
||||
return flags
|
||||
|
||||
# Reserved Interrupts.
|
||||
|
|
|
@ -29,7 +29,7 @@ void isr(void)
|
|||
onetime++;
|
||||
}
|
||||
}
|
||||
#elif defined(__rocket__) || defined(__openc906__) || defined(__vexriscv_smp__)
|
||||
#elif defined(__riscv_plic__)
|
||||
|
||||
// PLIC initialization.
|
||||
void plic_init(void);
|
||||
|
|
Loading…
Reference in a new issue