diff options
author | Mike Leach <mike.leach@linaro.org> | 2021-10-11 11:50:08 +0100 |
---|---|---|
committer | Mike Leach <mike.leach@linaro.org> | 2022-03-10 14:43:49 +0000 |
commit | 5b323c2f8059794cf1d0a3db6fbc627854f6e6e9 (patch) | |
tree | e76e7e3bb761cc5b9e69a3f8595b78e3515fd98a | |
parent | 99a3a0f678114c973203e71ef9dbf64e297b9070 (diff) | |
download | OpenCSD-5b323c2f8059794cf1d0a3db6fbc627854f6e6e9.tar.gz |
tests: ete: Add test for BC instruction.
In arch 8.8 and 9.3 a BC instruction is added, which is a direct branch generating an atom element.
Signed-off-by: Mike Leach <mike.leach@linaro.org>
-rwxr-xr-x | decoder/tests/run_pkt_decode_tests-ete.bash | 1 | ||||
-rw-r--r-- | decoder/tests/snapshots-ete/ete-bc-instr/ETE_0_s1.ini | 15 | ||||
-rw-r--r-- | decoder/tests/snapshots-ete/ete-bc-instr/bindir_64/OTHERS_exec | bin | 0 -> 462720 bytes | |||
-rw-r--r-- | decoder/tests/snapshots-ete/ete-bc-instr/bindir_64/TEST_NON_DET_CODE_exec | bin | 0 -> 72 bytes | |||
-rw-r--r-- | decoder/tests/snapshots-ete/ete-bc-instr/bindir_64/VAL_NON_DET_CODE_exec | bin | 0 -> 127768 bytes | |||
-rw-r--r-- | decoder/tests/snapshots-ete/ete-bc-instr/bindir_64/leafBlock_EL3_0_l1_0_l2_0_l3_256_0_exec | bin | 0 -> 125320 bytes | |||
-rw-r--r-- | decoder/tests/snapshots-ete/ete-bc-instr/checker_metadata.ini | 7 | ||||
-rw-r--r-- | decoder/tests/snapshots-ete/ete-bc-instr/cpu_0.ini | 32 | ||||
-rw-r--r-- | decoder/tests/snapshots-ete/ete-bc-instr/session1.bin | bin | 0 -> 33 bytes | |||
-rw-r--r-- | decoder/tests/snapshots-ete/ete-bc-instr/snapshot.ini | 11 | ||||
-rw-r--r-- | decoder/tests/snapshots-ete/ete-bc-instr/trace.ini | 15 |
11 files changed, 81 insertions, 0 deletions
diff --git a/decoder/tests/run_pkt_decode_tests-ete.bash b/decoder/tests/run_pkt_decode_tests-ete.bash index 1b8c762..5f09493 100755 --- a/decoder/tests/run_pkt_decode_tests-ete.bash +++ b/decoder/tests/run_pkt_decode_tests-ete.bash @@ -53,6 +53,7 @@ BIN_DIR=./bin/linux64/rel/ # directories for tests using full decode declare -a test_dirs_decode=( "001-ack_test" "002-ack_test_scr" + "ete-bc-instr" "ete_ip" "ete_mem" "ete_spec_1" diff --git a/decoder/tests/snapshots-ete/ete-bc-instr/ETE_0_s1.ini b/decoder/tests/snapshots-ete/ete-bc-instr/ETE_0_s1.ini new file mode 100644 index 0000000..62661c1 --- /dev/null +++ b/decoder/tests/snapshots-ete/ete-bc-instr/ETE_0_s1.ini @@ -0,0 +1,15 @@ +[device] +name=ETE_0_s1 +class=trace_source +type=ETE + + +[regs] +TRCCONFIGR=0x8001 +TRCTRACEIDR=0x1 +TRCDEVARCH=0x47715a13 +TRCIDR0=0x2881cea1 +TRCIDR1=0x4100fff0 +TRCIDR2=0xd0001088 +TRCIDR8=0x0 + diff --git a/decoder/tests/snapshots-ete/ete-bc-instr/bindir_64/OTHERS_exec b/decoder/tests/snapshots-ete/ete-bc-instr/bindir_64/OTHERS_exec Binary files differnew file mode 100644 index 0000000..50abb36 --- /dev/null +++ b/decoder/tests/snapshots-ete/ete-bc-instr/bindir_64/OTHERS_exec diff --git a/decoder/tests/snapshots-ete/ete-bc-instr/bindir_64/TEST_NON_DET_CODE_exec b/decoder/tests/snapshots-ete/ete-bc-instr/bindir_64/TEST_NON_DET_CODE_exec Binary files differnew file mode 100644 index 0000000..ec2e6c0 --- /dev/null +++ b/decoder/tests/snapshots-ete/ete-bc-instr/bindir_64/TEST_NON_DET_CODE_exec diff --git a/decoder/tests/snapshots-ete/ete-bc-instr/bindir_64/VAL_NON_DET_CODE_exec b/decoder/tests/snapshots-ete/ete-bc-instr/bindir_64/VAL_NON_DET_CODE_exec Binary files differnew file mode 100644 index 0000000..c04998a --- /dev/null +++ b/decoder/tests/snapshots-ete/ete-bc-instr/bindir_64/VAL_NON_DET_CODE_exec diff --git a/decoder/tests/snapshots-ete/ete-bc-instr/bindir_64/leafBlock_EL3_0_l1_0_l2_0_l3_256_0_exec b/decoder/tests/snapshots-ete/ete-bc-instr/bindir_64/leafBlock_EL3_0_l1_0_l2_0_l3_256_0_exec Binary files differnew file mode 100644 index 0000000..ab8412a --- /dev/null +++ b/decoder/tests/snapshots-ete/ete-bc-instr/bindir_64/leafBlock_EL3_0_l1_0_l2_0_l3_256_0_exec diff --git a/decoder/tests/snapshots-ete/ete-bc-instr/checker_metadata.ini b/decoder/tests/snapshots-ete/ete-bc-instr/checker_metadata.ini new file mode 100644 index 0000000..3a3291e --- /dev/null +++ b/decoder/tests/snapshots-ete/ete-bc-instr/checker_metadata.ini @@ -0,0 +1,7 @@ +[trace_source] +sessions = session1 + +[session1] +partnum = 1 +checktype = TRC_CFC_CHECK + diff --git a/decoder/tests/snapshots-ete/ete-bc-instr/cpu_0.ini b/decoder/tests/snapshots-ete/ete-bc-instr/cpu_0.ini new file mode 100644 index 0000000..4d52d93 --- /dev/null +++ b/decoder/tests/snapshots-ete/ete-bc-instr/cpu_0.ini @@ -0,0 +1,32 @@ +[device] +name=cpu_0 +class=core +type=ARM-AA64 + +[regs] +PC(size:64)=0x0 +SP(size:64)=0 +SCTLR_EL1=0x0 +CPSR=0x0 + + +[dump1] +file=bindir_64/OTHERS_exec +address=0x00060000 +length=0x70f80 + +[dump2] +file=bindir_64/leafBlock_EL3_0_l1_0_l2_0_l3_256_0_exec +address=0x01000000 +length=0x1e988 + +[dump3] +file=bindir_64/VAL_NON_DET_CODE_exec +address=0x00010000 +length=0x1f318 + +[dump4] +file=bindir_64/TEST_NON_DET_CODE_exec +address=0x00050000 +length=0x48 + diff --git a/decoder/tests/snapshots-ete/ete-bc-instr/session1.bin b/decoder/tests/snapshots-ete/ete-bc-instr/session1.bin Binary files differnew file mode 100644 index 0000000..47dc6e6 --- /dev/null +++ b/decoder/tests/snapshots-ete/ete-bc-instr/session1.bin diff --git a/decoder/tests/snapshots-ete/ete-bc-instr/snapshot.ini b/decoder/tests/snapshots-ete/ete-bc-instr/snapshot.ini new file mode 100644 index 0000000..fae7cd1 --- /dev/null +++ b/decoder/tests/snapshots-ete/ete-bc-instr/snapshot.ini @@ -0,0 +1,11 @@ +[snapshot] +version=1.0 +description=checker_metadata.ini + +[device_list] +device0=cpu_0.ini +device1=ETE_0_s1.ini + +[trace] +metadata=trace.ini + diff --git a/decoder/tests/snapshots-ete/ete-bc-instr/trace.ini b/decoder/tests/snapshots-ete/ete-bc-instr/trace.ini new file mode 100644 index 0000000..7e95dab --- /dev/null +++ b/decoder/tests/snapshots-ete/ete-bc-instr/trace.ini @@ -0,0 +1,15 @@ +[trace_buffers] +buffers=buffer1 + +[buffer1] +name=ETB_1 +file=session1.bin +format=source_data + + +[source_buffers] +ETE_0_s1=ETB_1 + +[core_trace_sources] +cpu_0=ETE_0_s1 + |