tests/tcg/xtensa: conditionalize debug option tests
commit66c58ba71b2ed49b5908ae4db146986d053e46be
authorMax Filippov <jcmvbkbc@gmail.com>
Mon, 18 Feb 2019 14:24:38 +0000 (18 06:24 -0800)
committerMax Filippov <jcmvbkbc@gmail.com>
Thu, 28 Feb 2019 12:43:23 +0000 (28 04:43 -0800)
tree6279d8dfce2d3a499c2973c3256eec58342d24f8
parent912f161ff7bbb64c7d5b2eb6f81f830c80a6ef9b
tests/tcg/xtensa: conditionalize debug option tests

Make debug tests conditional on the presence of the debug option in the
config and tests that depend on the presence/number of instruction or
data breakpoint registers on the corresponding definitions. Use
configured debug interrupt level instead of the hardcoded value to set
up IRQ handler and access debug EPC register.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
tests/tcg/xtensa/macros.inc
tests/tcg/xtensa/test_break.S