summaryrefslogtreecommitdiffstats
path: root/tests/tcg/xtensa
Commit message (Collapse)AuthorAgeFilesLines
* target/xtensa: tests: clean up interrupt testsMax Filippov2017-01-151-7/+20
| | | | | | | Don't use hardcoded software interrupt masks, use XCHAL macros. Mask off timer interrupt bits that are not checked for. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
* target/xtensa: tests: add memctl testMax Filippov2017-01-151-0/+1
| | | | 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: tests: run tests with icountMax Filippov2017-01-151-1/+1
| | | | | | | Timer tests expect certain determinism in CCOUNT updates and timer interrupts firing. Run QEMU with -icount to get deterministic results. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
* Move target-* CPU file into a target/ folderThomas Huth2016-12-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | We've currently got 18 architectures in QEMU, and thus 18 target-xxx folders in the root folder of the QEMU source tree. More architectures (e.g. RISC-V, AVR) are likely to be included soon, too, so the main folder of the QEMU sources slowly gets quite overcrowded with the target-xxx folders. To disburden the main folder a little bit, let's move the target-xxx folders into a dedicated target/ folder, so that target-xxx/ simply becomes target/xxx/ instead. Acked-by: Laurent Vivier <laurent@vivier.eu> [m68k part] Acked-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de> [tricore part] Acked-by: Michael Walle <michael@walle.cc> [lm32 part] Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com> [s390x part] Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com> [s390x part] Acked-by: Eduardo Habkost <ehabkost@redhat.com> [i386 part] Acked-by: Artyom Tarasenko <atar4qemu@gmail.com> [sparc part] Acked-by: Richard Henderson <rth@twiddle.net> [alpha part] Acked-by: Max Filippov <jcmvbkbc@gmail.com> [xtensa part] Reviewed-by: David Gibson <david@gibson.dropbear.id.au> [ppc part] Acked-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> [cris&microblaze part] Acked-by: Guan Xuetao <gxt@mprc.pku.edu.cn> [unicore32 part] Signed-off-by: Thomas Huth <thuth@redhat.com>
* Use #include "..." for our own headers, <...> for othersMarkus Armbruster2016-07-121-1/+1
| | | | | | | | | | | | Tracked down with an ugly, brittle and probably buggy Perl script. Also move includes converted to <...> up so they get included before ours where that's obviously okay. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Tested-by: Eric Blake <eblake@redhat.com> Reviewed-by: Richard Henderson <rth@twiddle.net>
* target-xtensa: test cross-page opcodeMax Filippov2014-12-171-13/+13
| | | | | | Alter cross-page TB test to also test cross-page opcode. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
* target-xtensa: add entry overflow testMax Filippov2014-11-101-0/+51
| | | | | | | Check that entry instruction raises window overflow exception when PS.CALLINC points to live registers. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
* target-xtensa: tests: pre-process tests linker scriptMax Filippov2014-11-023-115/+137
| | | | | | | | | | | | Xtensa cores have configurable interrupt vectors and endiannes. This information is needed to link executable images correctly for a specific core configuration. Instead of hard-coding dc232 defaults pull endianness, number of high-priority interrupts and location of vectors from the core configuration and pass it through the C preprocessor. While at it clean up tabs and align the initial stack on 16 bytes. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
* target-xtensa: add tests for cross-page TBMax Filippov2014-05-261-0/+220
| | | | Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
* target-xtensa: completely clean TLB between MMU testsMax Filippov2014-05-261-7/+19
| | | | Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
* target-xtensa: add basic tests for cache opcodesMax Filippov2014-02-242-0/+98
| | | | | | | Test that non-locking prefetch operations don't cause exceptions on missing TLB and that other 'hit' cache operations do. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
* target-xtensa: allow using core configuration in testsMax Filippov2014-02-2430-32/+37
| | | | | | | 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>
* target-xtensa: add overridable test_init macroMax Filippov2014-02-242-2/+6
| | | | | | | Some test suites, like MMU, need per-test initialization. Don't make them redefine test macro, add test_init for that purpose. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
* tests/tcg/xtensa: Fix out-of-tree buildAndreas Färber2013-07-291-9/+11
| | | | | Signed-off-by: Andreas Färber <afaerber@suse.de> Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
* target-xtensa: add extui unit testMax Filippov2013-07-292-0/+27
| | | | Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
* target-xtensa: add s32c1i unit testsMax Filippov2012-12-082-0/+40
| | | | | Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* target-xtensa: add SR accessibility unit testsMax Filippov2012-12-083-1/+92
| | | | | Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* target-xtensa: add MMU pagewalking testsMax Filippov2012-06-091-14/+207
| | | | | Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* target-xtensa: add tests for LOOPNEZ and LOOPGTZMax Filippov2012-04-211-0/+36
| | | | | Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* target-xtensa: add test for IBREAK invalidationMax Filippov2012-04-141-0/+34
| | | | | Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* target-xtensa: add tests for LBEG/LEND invalidationMax Filippov2012-04-141-0/+50
| | | | | Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* target-xtensa: improve unit tests debuggingMax Filippov2012-04-142-0/+20
| | | | | | | | - add testcase announcement; - add global symbols for individual tests; - add host-debug-* makefile target. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
* target-xtensa: add breakpoint testsMax Filippov2012-02-202-0/+224
| | | | Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
* tests: mv tests/* -> tests/tcgAnthony Liguori2012-01-1229-0/+3394
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>