tests: Add tests for the PVR
authorJordan Niethe <jniethe5@gmail.com>
Wed, 8 Jul 2020 04:34:42 +0000 (14:34 +1000)
committerJordan Niethe <jniethe5@gmail.com>
Wed, 8 Jul 2020 10:57:21 +0000 (20:57 +1000)
commit737ebd92f583d18f4b78c21d07de3f26edb57678
treedc49b5fa8b5bf0b917010f41482f600ddb2b7eb4
parent17fc77cef28990033e7b12486befcc7fa9867e16
tests: Add tests for the PVR

The PVR is a privileged read-only SPR. Test reading and writing in both
supervisor and problem state. In supervisor state reading returns
microwatt's assigned PVR number and writing is a noop. In problem state
both reading and writing cause privileged instruction interrupts.

Signed-off-by: Jordan Niethe <jniethe5@gmail.com>
tests/misc/head.S
tests/misc/misc.c
tests/privileged/privileged.c
tests/test_misc.bin
tests/test_misc.console_out
tests/test_privileged.bin
tests/test_privileged.console_out