summaryrefslogtreecommitdiffstats
path: root/tests/tcg/xtensa/test_timer.S
Commit message (Collapse)AuthorAgeFilesLines
* tests/tcg/xtensa: conditionalize timer/CCOUNT testsMax Filippov2019-02-281-4/+44
| | | | | | | | Make timer/CCOUNT tests conditional on the presence of timer option and number of configured timers. Don't use hard coded interrupt levels for timers, use configured values. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
* target/xtensa: tests: add ccount write testsMax Filippov2017-01-151-0/+34
| | | | | | | Check that CCOUNT SR is writable and that CCOMPARE timers are updated when CCOUNT is written to. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
* target/xtensa: tests: replace hardcoded interrupt masksMax Filippov2017-01-151-5/+5
| | | | Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
* target/xtensa: tests: fix timer testsMax Filippov2017-01-151-28/+33
| | | | | | | | Don't expect that CCOUNT increments are equal to the number of executed instructions. Verify that timer interrupt does not fire before the programmed CCOMPARE value and does fire after. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
* target-xtensa: allow using core configuration in testsMax Filippov2014-02-241-1/+1
| | | | | | | Add path to the core configuration directory to test build command and replace .include asm directive with #include to enable preprocessing. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
* tests: mv tests/* -> tests/tcgAnthony Liguori2012-01-121-0/+178
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>