qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

tests/tcg/xtensa: add FPU2000 coprocessor tests

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>

+28
+1
tests/tcg/xtensa/Makefile
··· 42 42 TESTCASES += test_fp0_arith.tst 43 43 TESTCASES += test_fp0_conv.tst 44 44 TESTCASES += test_fp1.tst 45 + TESTCASES += test_fp_cpenable.tst 45 46 TESTCASES += test_interrupt.tst 46 47 TESTCASES += test_loop.tst 47 48 TESTCASES += test_lsc.tst
+27
tests/tcg/xtensa/test_fp_cpenable.S
··· 1 + #include "macros.inc" 2 + 3 + test_suite fp_cpenable 4 + 5 + #if XCHAL_HAVE_FP 6 + 7 + test rur 8 + set_vector kernel, 2f 9 + movi a2, 0 10 + wsr a2, cpenable 11 + isync 12 + 1: 13 + rur a2, fsr 14 + //wfr f0, a2 15 + test_fail 16 + 2: 17 + movi a2, 1b 18 + rsr a3, epc1 19 + assert eq, a2, a3 20 + movi a2, 32 21 + rsr a3, exccause 22 + assert eq, a2, a3 23 + test_end 24 + 25 + #endif 26 + 27 + test_suite_end