Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SoC/evalsoc: Only initialize ECLIC SMode related registers when TEE r…
…eally present Previous this is only controlled by __TEE_PRESENT macro, now it will do runtime check to avoid initializaton access this register when it is not present to cause exception like below. MCAUSE : 0x30000002 MDCAUSE: 0x0 MEPC : 0x80002958 MTVAL : 0x10761073 HARTID : 0 ra: 0x80002894, tp: 0x90000890, t0: 0x80003514, t1: 0xf, t2: 0x0, t3: 0x0, t4: 0x0, t5: 0x0, t6: 0x0 a0: 0x900010f8, a1: 0x1, a2: 0x80000200, a3: 0x18020000, a4: 0x7, a5: 0x20000, a6: 0x90000000, a7: 0x0 cause: 0x30000002, epc: 0x80002958 msubm: 0x80 Signed-off-by: Huaqi Fang <[email protected]>
- Loading branch information