[sw/cpu_test] minor layout fixes

This commit is contained in:
stnolting 2020-10-20 21:20:44 +02:00
parent 65ef1027e2
commit 040d3dd422

View file

@ -773,6 +773,8 @@ int main() {
asm volatile("nop");
asm volatile("nop");
asm volatile("nop");
asm volatile("nop");
asm volatile("nop");
if (exception_handler_answer == TRAP_CODE_MTI) {
test_ok();
@ -808,6 +810,8 @@ int main() {
asm volatile("nop");
asm volatile("nop");
asm volatile("nop");
asm volatile("nop");
asm volatile("nop");
if (exception_handler_answer == TRAP_CODE_FIRQ_0) {
test_ok();
@ -867,6 +871,8 @@ int main() {
asm volatile("nop");
asm volatile("nop");
asm volatile("nop");
asm volatile("nop");
asm volatile("nop");
// wait for UART to finish transmitting
while(neorv32_uart_tx_busy());
@ -908,6 +914,8 @@ int main() {
asm volatile("nop");
asm volatile("nop");
asm volatile("nop");
asm volatile("nop");
asm volatile("nop");
if (exception_handler_answer == TRAP_CODE_FIRQ_3) {
test_ok();
@ -945,6 +953,8 @@ int main() {
asm volatile("nop");
asm volatile("nop");
asm volatile("nop");
asm volatile("nop");
asm volatile("nop");
if (exception_handler_answer == TRAP_CODE_FIRQ_3) {
test_ok();
@ -1075,7 +1085,7 @@ int main() {
// ------ LOAD: should work ------
neorv32_uart_printf("\n[%i] PMP: U-mode [!X,!W,R] load test: ", cnt_test);
neorv32_uart_printf("[%i] PMP: U-mode [!X,!W,R] load test: ", cnt_test);
cnt_test++;
exception_handler_answer = 0xFFFFFFFF;