Visible to Intel only — GUID: mci1741139909013
Ixiasoft
Visible to Intel only — GUID: mci1741139909013
Ixiasoft
4.3.11.1.4.3. Machine Trap-Vector Base-Address Register (mtvec)
The CLIC interrupt-handling mode is encoded as a new state in the existing mtvec WARL register, where mtvec.mode is 11, and mtvec.submode are zero. The trap vector base address is specified as the upper 26 bits of mtvec (base) with six lower zero bits appended, which constrains alignment on a 64-byte or larger power-of-two boundary.
31 | 6 | 5 | 2 | 1 | 0 |
Base (WARL) | submode (Hardwired to 0) | mode |
mtvec.mode | Modes | Description |
---|---|---|
00 | CLINT Direct mode | All traps set pc to mtvec[31:2]. Refer to Trap Controller (CLINT) chapter for more information. |
01 | CLINT Vectored mode | All exceptions set pc to mtvec[31:2]. All interrupts set pc to mtvec[31:2]+4*cause. Refer to Trap Controller (CLINT) chapter for more information. |
10 | Reserved | - |
11 | CLIC mode | All exceptions and software-vectored interrupts set pc to mtvec[31:6]. All hardware-vectored interrupts set pc to mtvec[31:6]+4*cause. |