Add test cases for new exceptions and supervisor state
authorMichael Neuling <mikey@neuling.org>
Tue, 31 Mar 2020 06:32:38 +0000 (17:32 +1100)
committerMichael Neuling <mikey@neuling.org>
Wed, 1 Apr 2020 01:02:33 +0000 (12:02 +1100)
commit9d7df2d50768df54503dc400e6c774ad82f02c8e
tree85ff7d3c07a2e0c43dc2f6ba907027115e480401
parent5ef5604b65f612ca4b5e3e945e3ceb3ed273bf28
Add test cases for new exceptions and supervisor state

This adds test cases for:
- sc, illegals and decrementer exceptions
- decrementer overflow
- rfid
- mt/mf sprg0/1 srr0/1
- mtdec
- mtmsrd
- sc

It also adds these test cases to make check/check_light

Signed-off-by: Michael Neuling <mikey@neuling.org>
23 files changed:
.gitignore
Makefile
scripts/run_test_console.sh [new file with mode: 0755]
tests/Makefile.test [new file with mode: 0644]
tests/decrementer/Makefile [new file with mode: 0644]
tests/decrementer/decrementer.c [new file with mode: 0644]
tests/decrementer/head.S [new file with mode: 0644]
tests/decrementer/powerpc.lds [new file with mode: 0644]
tests/illegal/Makefile [new file with mode: 0644]
tests/illegal/head.S [new file with mode: 0644]
tests/illegal/illegal.c [new file with mode: 0644]
tests/illegal/powerpc.lds [new file with mode: 0644]
tests/sc/Makefile [new file with mode: 0644]
tests/sc/head.S [new file with mode: 0644]
tests/sc/powerpc.lds [new file with mode: 0644]
tests/sc/sc.c [new file with mode: 0644]
tests/test_decrementer.bin [new file with mode: 0755]
tests/test_decrementer.console_out [new file with mode: 0644]
tests/test_illegal.bin [new file with mode: 0755]
tests/test_illegal.console_out [new file with mode: 0644]
tests/test_sc.bin [new file with mode: 0755]
tests/test_sc.console_out [new file with mode: 0644]
tests/update_console_tests [new file with mode: 0755]