tests: Add a test for the load-reserve and store-conditional instructions
authorPaul Mackerras <paulus@ozlabs.org>
Sat, 22 Aug 2020 09:53:59 +0000 (19:53 +1000)
committerPaul Mackerras <paulus@ozlabs.org>
Sat, 22 Aug 2020 09:53:59 +0000 (19:53 +1000)
commite7a08f33ebdec6c3825f60c0834734455301160e
tree533889fd674999b5cbcf5033efc24782984fdd75
parenteee90a081516c3bbac9625e78be15652b79caa68
tests: Add a test for the load-reserve and store-conditional instructions

This checks that the instructions seem to update memory as expected,
and also that they generate alignment interrupts when necessary.
We don't check whether the memory update is atomic as we don't have
SMP yet.

Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
tests/reservation/Makefile [new file with mode: 0644]
tests/reservation/head.S [new file with mode: 0644]
tests/reservation/powerpc.lds [new file with mode: 0644]
tests/reservation/reservation.c [new file with mode: 0644]
tests/test_reservation.bin [new file with mode: 0755]
tests/test_reservation.console_out [new file with mode: 0644]
tests/update_console_tests