mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
renamed debug to extended signature
This commit is contained in:
parent
25ad39939f
commit
393edc9fd8
@ -27,7 +27,7 @@ INIT_TESTS
|
|||||||
|
|
||||||
CAUSE_TRAP_TRIGGERS // initialize code that will cause traps for consistent mtval addresses
|
CAUSE_TRAP_TRIGGERS // initialize code that will cause traps for consistent mtval addresses
|
||||||
|
|
||||||
TRAP_HANDLER m, DEBUG=1 // turn on recording mtval and status bits on traps
|
TRAP_HANDLER m, EXT_SIGNATURE=1 // turn on recording mtval and status bits on traps
|
||||||
|
|
||||||
li x28, 0x8
|
li x28, 0x8
|
||||||
csrs mstatus, x28 // set mstatus.MIE bit to 1.
|
csrs mstatus, x28 // set mstatus.MIE bit to 1.
|
||||||
|
@ -29,7 +29,7 @@ CAUSE_TRAP_TRIGGERS // initialize code that will cause traps for consistent mtva
|
|||||||
|
|
||||||
// test 5.3.1.5 Unvectored interrupt tests
|
// test 5.3.1.5 Unvectored interrupt tests
|
||||||
|
|
||||||
TRAP_HANDLER m, VECTORED=0, DEBUG=1 // turn off vectored interrupts, while turning on recording of mstatus bits.
|
TRAP_HANDLER m, VECTORED=0, EXT_SIGNATURE=1 // turn off vectored interrupts, while turning on recording of mstatus bits.
|
||||||
|
|
||||||
li x28, 0x8
|
li x28, 0x8
|
||||||
csrs mstatus, x28 // set sstatus.MIE bit to 1 // *** might be unneccessary for s mode
|
csrs mstatus, x28 // set sstatus.MIE bit to 1 // *** might be unneccessary for s mode
|
||||||
|
@ -27,7 +27,7 @@ INIT_TESTS
|
|||||||
|
|
||||||
CAUSE_TRAP_TRIGGERS // initialize code that will cause traps for consistent mtval addresses
|
CAUSE_TRAP_TRIGGERS // initialize code that will cause traps for consistent mtval addresses
|
||||||
|
|
||||||
TRAP_HANDLER m, DEBUG=1 // turn on recording mtval and status bits on traps
|
TRAP_HANDLER m, EXT_SIGNATURE=1 // turn on recording mtval and status bits on traps
|
||||||
|
|
||||||
li x28, 0x2
|
li x28, 0x2
|
||||||
csrs sstatus, x28 // set sstatus.SIE bit to 1
|
csrs sstatus, x28 // set sstatus.SIE bit to 1
|
||||||
|
@ -27,7 +27,7 @@ INIT_TESTS
|
|||||||
|
|
||||||
CAUSE_TRAP_TRIGGERS // initialize code that will cause traps for consistent mtval addresses
|
CAUSE_TRAP_TRIGGERS // initialize code that will cause traps for consistent mtval addresses
|
||||||
|
|
||||||
TRAP_HANDLER m, DEBUG=1
|
TRAP_HANDLER m, EXT_SIGNATURE=1
|
||||||
|
|
||||||
li x28, 0x8
|
li x28, 0x8
|
||||||
csrs mstatus, x28 // set mstatus.MIE bit to 1
|
csrs mstatus, x28 // set mstatus.MIE bit to 1
|
||||||
|
@ -27,8 +27,8 @@ INIT_TESTS
|
|||||||
|
|
||||||
CAUSE_TRAP_TRIGGERS // initialize code that will cause traps for consistent mtval addresses
|
CAUSE_TRAP_TRIGGERS // initialize code that will cause traps for consistent mtval addresses
|
||||||
|
|
||||||
TRAP_HANDLER m, DEBUG=1 // necessary so we can go to S mode
|
TRAP_HANDLER m, EXT_SIGNATURE=1 // necessary so we can go to S mode
|
||||||
TRAP_HANDLER s, DEBUG=1 // neccessary to handle s mode interrupts.
|
TRAP_HANDLER s, EXT_SIGNATURE=1 // neccessary to handle s mode interrupts.
|
||||||
|
|
||||||
li x28, 0x2
|
li x28, 0x2
|
||||||
csrs sstatus, x28 // set sstatus.SIE bit to 1
|
csrs sstatus, x28 // set sstatus.SIE bit to 1
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
INIT_TESTS
|
INIT_TESTS
|
||||||
|
|
||||||
TRAP_HANDLER m, DEBUG=1 // turn on recording mtval and status bits on traps
|
TRAP_HANDLER m, EXT_SIGNATURE=1 // turn on recording mtval and status bits on traps
|
||||||
|
|
||||||
li x28, 0x200000
|
li x28, 0x200000
|
||||||
csrs mstatus, x28 // set mstatus.TW bit to 1
|
csrs mstatus, x28 // set mstatus.TW bit to 1
|
||||||
|
@ -29,8 +29,8 @@ CAUSE_TRAP_TRIGGERS // initialize code that will cause traps for consistent mtva
|
|||||||
|
|
||||||
// test 5.3.1.5 Unvectored interrupt tests
|
// test 5.3.1.5 Unvectored interrupt tests
|
||||||
|
|
||||||
TRAP_HANDLER m, VECTORED=0, DEBUG=1 // necessary to handle changing modes
|
TRAP_HANDLER m, VECTORED=0, EXT_SIGNATURE=1 // necessary to handle changing modes
|
||||||
TRAP_HANDLER s, VECTORED=0, DEBUG=1 // turn off vectored interrupts, while turning on recording of mstatus bits.
|
TRAP_HANDLER s, VECTORED=0, EXT_SIGNATURE=1 // turn off vectored interrupts, while turning on recording of mstatus bits.
|
||||||
|
|
||||||
li x28, 0x2
|
li x28, 0x2
|
||||||
csrs sstatus, x28 // set sstatus.SIE bit to 1
|
csrs sstatus, x28 // set sstatus.SIE bit to 1
|
||||||
|
@ -27,7 +27,7 @@ INIT_TESTS
|
|||||||
|
|
||||||
CAUSE_TRAP_TRIGGERS // initialize code that will cause traps for consistent mtval addresses
|
CAUSE_TRAP_TRIGGERS // initialize code that will cause traps for consistent mtval addresses
|
||||||
|
|
||||||
TRAP_HANDLER m, DEBUG=1 // turn on recording mtval and status bits on traps
|
TRAP_HANDLER m, EXT_SIGNATURE=1 // turn on recording mtval and status bits on traps
|
||||||
|
|
||||||
li x28, 0x8
|
li x28, 0x8
|
||||||
csrs mstatus, x28 // set mstatus.MIE bit to 1
|
csrs mstatus, x28 // set mstatus.MIE bit to 1
|
||||||
|
@ -29,8 +29,8 @@ CAUSE_TRAP_TRIGGERS // initialize code that will cause traps for consistent mtva
|
|||||||
|
|
||||||
// test 5.3.1.4 Basic trap tests
|
// test 5.3.1.4 Basic trap tests
|
||||||
|
|
||||||
TRAP_HANDLER m, DEBUG=1 // necessary to handle switching privilege modes
|
TRAP_HANDLER m, EXT_SIGNATURE=1 // necessary to handle switching privilege modes
|
||||||
TRAP_HANDLER s, DEBUG=1 // have S mode trap handler as well
|
TRAP_HANDLER s, EXT_SIGNATURE=1 // have S mode trap handler as well
|
||||||
|
|
||||||
// Like WALLY-trap, cause all the same traps from S mode and make sure they go to machine mode with zeroed mideleg, medeleg
|
// Like WALLY-trap, cause all the same traps from S mode and make sure they go to machine mode with zeroed mideleg, medeleg
|
||||||
|
|
||||||
@ -64,7 +64,7 @@ jal cause_m_ext_interrupt
|
|||||||
|
|
||||||
// Now delegate all traps to S mode and attempt them again, ensuring they now go to the S mode trap handler
|
// Now delegate all traps to S mode and attempt them again, ensuring they now go to the S mode trap handler
|
||||||
// We can tell which one becuase the different trap handler modes write different bits of the status register
|
// We can tell which one becuase the different trap handler modes write different bits of the status register
|
||||||
// to the output when debug is on.
|
// to the output when EXT_SIGNATURE is on.
|
||||||
|
|
||||||
GOTO_M_MODE // so we can write the delegate registers
|
GOTO_M_MODE // so we can write the delegate registers
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
INIT_TESTS
|
INIT_TESTS
|
||||||
|
|
||||||
TRAP_HANDLER m, DEBUG=1
|
TRAP_HANDLER m, EXT_SIGNATURE=1
|
||||||
|
|
||||||
// test 5.3.1.6 Interrupt enabling and priority tests
|
// test 5.3.1.6 Interrupt enabling and priority tests
|
||||||
|
|
||||||
|
@ -29,8 +29,8 @@ CAUSE_TRAP_TRIGGERS // initialize code that will cause traps for consistent mtva
|
|||||||
|
|
||||||
// test 5.3.1.4 Basic trap tests
|
// test 5.3.1.4 Basic trap tests
|
||||||
|
|
||||||
TRAP_HANDLER m, DEBUG=1 // turn on recording mtval and status bits on traps
|
TRAP_HANDLER m, EXT_SIGNATURE=1 // turn on recording mtval and status bits on traps
|
||||||
TRAP_HANDLER s, DEBUG=1 // have S mode trap handler as well
|
TRAP_HANDLER s, EXT_SIGNATURE=1 // have S mode trap handler as well
|
||||||
|
|
||||||
// Like WALLY-trap, cause all the same traps from U mode and make sure they go to machine mode with zeroed mideleg, medeleg
|
// Like WALLY-trap, cause all the same traps from U mode and make sure they go to machine mode with zeroed mideleg, medeleg
|
||||||
|
|
||||||
@ -61,7 +61,7 @@ jal cause_m_ext_interrupt
|
|||||||
|
|
||||||
// Now delegate all traps to S mode and attempt them again, ensuring they now go to the S mode trap handler
|
// Now delegate all traps to S mode and attempt them again, ensuring they now go to the S mode trap handler
|
||||||
// We can tell which one becuase the different trap handler modes write different bits of the status register
|
// We can tell which one becuase the different trap handler modes write different bits of the status register
|
||||||
// to the output when debug is on.
|
// to the output when EXT_SIGNATURE is on.
|
||||||
|
|
||||||
GOTO_M_MODE // so we can write the delegate registers
|
GOTO_M_MODE // so we can write the delegate registers
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
INIT_TESTS
|
INIT_TESTS
|
||||||
|
|
||||||
TRAP_HANDLER m, DEBUG=1 // turn on recording mtval and status bits on traps
|
TRAP_HANDLER m, EXT_SIGNATURE=1 // turn on recording mtval and status bits on traps
|
||||||
|
|
||||||
li x28, 0x8
|
li x28, 0x8
|
||||||
csrs mstatus, x28 // set mstatus.MIE bit to 1
|
csrs mstatus, x28 // set mstatus.MIE bit to 1
|
||||||
|
@ -27,7 +27,7 @@ INIT_TESTS
|
|||||||
|
|
||||||
CAUSE_TRAP_TRIGGERS // initialize code that will cause traps for consistent mtval addresses
|
CAUSE_TRAP_TRIGGERS // initialize code that will cause traps for consistent mtval addresses
|
||||||
|
|
||||||
TRAP_HANDLER m, DEBUG=1 // turn on recording mtval and status bits on traps
|
TRAP_HANDLER m, EXT_SIGNATURE=1 // turn on recording mtval and status bits on traps
|
||||||
|
|
||||||
li x28, 0x8
|
li x28, 0x8
|
||||||
csrs mstatus, x28 // set mstatus.MIE bit to 1.
|
csrs mstatus, x28 // set mstatus.MIE bit to 1.
|
||||||
|
@ -29,7 +29,7 @@ CAUSE_TRAP_TRIGGERS // initialize code that will cause traps for consistent mtva
|
|||||||
|
|
||||||
// test 5.3.1.5 Unvectored interrupt tests
|
// test 5.3.1.5 Unvectored interrupt tests
|
||||||
|
|
||||||
TRAP_HANDLER m, VECTORED=0, DEBUG=1 // turn off vectored interrupts, while turning on recording of mstatus bits.
|
TRAP_HANDLER m, VECTORED=0, EXT_SIGNATURE=1 // turn off vectored interrupts, while turning on recording of mstatus bits.
|
||||||
|
|
||||||
li x28, 0x8
|
li x28, 0x8
|
||||||
csrs mstatus, x28 // set sstatus.MIE bit to 1
|
csrs mstatus, x28 // set sstatus.MIE bit to 1
|
||||||
|
@ -27,7 +27,7 @@ INIT_TESTS
|
|||||||
|
|
||||||
CAUSE_TRAP_TRIGGERS // initialize code that will cause traps for consistent mtval addresses
|
CAUSE_TRAP_TRIGGERS // initialize code that will cause traps for consistent mtval addresses
|
||||||
|
|
||||||
TRAP_HANDLER m, DEBUG=1 // turn on recording mtval and status bits on traps
|
TRAP_HANDLER m, EXT_SIGNATURE=1 // turn on recording mtval and status bits on traps
|
||||||
|
|
||||||
li x28, 0x2
|
li x28, 0x2
|
||||||
csrs sstatus, x28 // set sstatus.SIE bit to 1
|
csrs sstatus, x28 // set sstatus.SIE bit to 1
|
||||||
|
@ -27,7 +27,7 @@ INIT_TESTS
|
|||||||
|
|
||||||
CAUSE_TRAP_TRIGGERS // initialize code that will cause traps for consistent mtval addresses
|
CAUSE_TRAP_TRIGGERS // initialize code that will cause traps for consistent mtval addresses
|
||||||
|
|
||||||
TRAP_HANDLER m, DEBUG=1
|
TRAP_HANDLER m, EXT_SIGNATURE=1
|
||||||
|
|
||||||
li x28, 0x8
|
li x28, 0x8
|
||||||
csrs mstatus, x28 // set mstatus.MIE bit to 1
|
csrs mstatus, x28 // set mstatus.MIE bit to 1
|
||||||
|
@ -27,8 +27,8 @@ INIT_TESTS
|
|||||||
|
|
||||||
CAUSE_TRAP_TRIGGERS // initialize code that will cause traps for consistent mtval addresses
|
CAUSE_TRAP_TRIGGERS // initialize code that will cause traps for consistent mtval addresses
|
||||||
|
|
||||||
TRAP_HANDLER m, DEBUG=1 // necessary so we can go to S mode
|
TRAP_HANDLER m, EXT_SIGNATURE=1 // necessary so we can go to S mode
|
||||||
TRAP_HANDLER s, DEBUG=1 // neccessary to handle s mode interrupts.
|
TRAP_HANDLER s, EXT_SIGNATURE=1 // neccessary to handle s mode interrupts.
|
||||||
|
|
||||||
li x28, 0x2
|
li x28, 0x2
|
||||||
csrs sstatus, x28 // set sstatus.SIE bit to 1
|
csrs sstatus, x28 // set sstatus.SIE bit to 1
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
INIT_TESTS
|
INIT_TESTS
|
||||||
|
|
||||||
TRAP_HANDLER m, DEBUG=1 // turn on recording mtval and status bits on traps
|
TRAP_HANDLER m, EXT_SIGNATURE=1 // turn on recording mtval and status bits on traps
|
||||||
|
|
||||||
li x28, 0x200000
|
li x28, 0x200000
|
||||||
csrs mstatus, x28 // set mstatus.TW bit to 1
|
csrs mstatus, x28 // set mstatus.TW bit to 1
|
||||||
|
@ -29,8 +29,8 @@ CAUSE_TRAP_TRIGGERS // initialize code that will cause traps for consistent mtva
|
|||||||
|
|
||||||
// test 5.3.1.5 Unvectored interrupt tests
|
// test 5.3.1.5 Unvectored interrupt tests
|
||||||
|
|
||||||
TRAP_HANDLER m, VECTORED=0, DEBUG=1 // necessary to handle changing modes
|
TRAP_HANDLER m, VECTORED=0, EXT_SIGNATURE=1 // necessary to handle changing modes
|
||||||
TRAP_HANDLER s, VECTORED=0, DEBUG=1 // turn off vectored interrupts, while turning on recording of mstatus bits.
|
TRAP_HANDLER s, VECTORED=0, EXT_SIGNATURE=1 // turn off vectored interrupts, while turning on recording of mstatus bits.
|
||||||
|
|
||||||
li x28, 0x2
|
li x28, 0x2
|
||||||
csrs sstatus, x28 // set sstatus.SIE bit to 1
|
csrs sstatus, x28 // set sstatus.SIE bit to 1
|
||||||
|
@ -27,7 +27,7 @@ INIT_TESTS
|
|||||||
|
|
||||||
CAUSE_TRAP_TRIGGERS // initialize code that will cause traps for consistent mtval addresses
|
CAUSE_TRAP_TRIGGERS // initialize code that will cause traps for consistent mtval addresses
|
||||||
|
|
||||||
TRAP_HANDLER m, DEBUG=1 // turn on recording mtval and status bits on traps
|
TRAP_HANDLER m, EXT_SIGNATURE=1 // turn on recording mtval and status bits on traps
|
||||||
|
|
||||||
li x28, 0x8
|
li x28, 0x8
|
||||||
csrs mstatus, x28 // set mstatus.MIE bit to 1
|
csrs mstatus, x28 // set mstatus.MIE bit to 1
|
||||||
|
@ -29,8 +29,8 @@ CAUSE_TRAP_TRIGGERS // initialize code that will cause traps for consistent mtva
|
|||||||
|
|
||||||
// test 5.3.1.4 Basic trap tests
|
// test 5.3.1.4 Basic trap tests
|
||||||
|
|
||||||
TRAP_HANDLER m, DEBUG=1 // necessary to handle switching privilege modes
|
TRAP_HANDLER m, EXT_SIGNATURE=1 // necessary to handle switching privilege modes
|
||||||
TRAP_HANDLER s, DEBUG=1 // have S mode trap handler as well
|
TRAP_HANDLER s, EXT_SIGNATURE=1 // have S mode trap handler as well
|
||||||
|
|
||||||
// Like WALLY-trap, cause all the same traps from S mode and make sure they go to machine mode with zeroed mideleg, medeleg
|
// Like WALLY-trap, cause all the same traps from S mode and make sure they go to machine mode with zeroed mideleg, medeleg
|
||||||
|
|
||||||
@ -64,7 +64,7 @@ jal cause_m_ext_interrupt
|
|||||||
|
|
||||||
// Now delegate all traps to S mode and attempt them again, ensuring they now go to the S mode trap handler
|
// Now delegate all traps to S mode and attempt them again, ensuring they now go to the S mode trap handler
|
||||||
// We can tell which one becuase the different trap handler modes write different bits of the status register
|
// We can tell which one becuase the different trap handler modes write different bits of the status register
|
||||||
// to the output when debug is on.
|
// to the output when EXT_SIGNATURE is on.
|
||||||
|
|
||||||
GOTO_M_MODE // so we can write the delegate registers
|
GOTO_M_MODE // so we can write the delegate registers
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
INIT_TESTS
|
INIT_TESTS
|
||||||
|
|
||||||
TRAP_HANDLER m, DEBUG=1
|
TRAP_HANDLER m, EXT_SIGNATURE=1
|
||||||
|
|
||||||
// test 5.3.1.6 Interrupt enabling and priority tests
|
// test 5.3.1.6 Interrupt enabling and priority tests
|
||||||
|
|
||||||
|
@ -29,8 +29,8 @@ CAUSE_TRAP_TRIGGERS // initialize code that will cause traps for consistent mtva
|
|||||||
|
|
||||||
// test 5.3.1.4 Basic trap tests
|
// test 5.3.1.4 Basic trap tests
|
||||||
|
|
||||||
TRAP_HANDLER m, DEBUG=1 // turn on recording mtval and status bits on traps
|
TRAP_HANDLER m, EXT_SIGNATURE=1 // turn on recording mtval and status bits on traps
|
||||||
TRAP_HANDLER s, DEBUG=1 // have S mode trap handler as well
|
TRAP_HANDLER s, EXT_SIGNATURE=1 // have S mode trap handler as well
|
||||||
|
|
||||||
// Like WALLY-trap, cause all the same traps from U mode and make sure they go to machine mode with zeroed mideleg, medeleg
|
// Like WALLY-trap, cause all the same traps from U mode and make sure they go to machine mode with zeroed mideleg, medeleg
|
||||||
|
|
||||||
@ -61,7 +61,7 @@ jal cause_m_ext_interrupt
|
|||||||
|
|
||||||
// Now delegate all traps to S mode and attempt them again, ensuring they now go to the S mode trap handler
|
// Now delegate all traps to S mode and attempt them again, ensuring they now go to the S mode trap handler
|
||||||
// We can tell which one becuase the different trap handler modes write different bits of the status register
|
// We can tell which one becuase the different trap handler modes write different bits of the status register
|
||||||
// to the output when debug is on.
|
// to the output when EXT_SIGNATURE is on.
|
||||||
|
|
||||||
GOTO_M_MODE // so we can write the delegate registers
|
GOTO_M_MODE // so we can write the delegate registers
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
INIT_TESTS
|
INIT_TESTS
|
||||||
|
|
||||||
TRAP_HANDLER m, DEBUG=1 // turn on recording mtval and status bits on traps
|
TRAP_HANDLER m, EXT_SIGNATURE=1 // turn on recording mtval and status bits on traps
|
||||||
|
|
||||||
li x28, 0x8
|
li x28, 0x8
|
||||||
csrs mstatus, x28 // set mstatus.MIE bit to 1
|
csrs mstatus, x28 // set mstatus.MIE bit to 1
|
||||||
|
Loading…
Reference in New Issue
Block a user