Skip to content

Commit c0f407d

Browse files
committed
standalone_systests: build hsv39_tlb with -mv81
hsv39_tlb's tlbp64() probes HSV39 extended TLB entries by passing a 64-bit register pair to the tlbp mnemonic, which the assembler encodes as Y2_tlbpp. That instruction form requires -mv81, while the suite otherwise defaults to -mv68. Add compile and link options for hsv39_tlb only, leaving the global HEXAGON_ARCH and unrelated tests unchanged. Signed-off-by: Marco Liebel <marco.liebel@oss.qualcomm.com>
1 parent 82c17ad commit c0f407d

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

standalone_systests/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,13 @@ if(TARGET mmu_cacheops)
192192
target_sources(mmu_cacheops PRIVATE src/dummy_mutex.S)
193193
endif()
194194

195+
# hsv39_tlb uses tlbp with a 64-bit register pair (Y2_tlbpp), which requires
196+
# -mv81 or higher even though the rest of the test suite targets v68.
197+
if(TARGET hsv39_tlb)
198+
target_compile_options(hsv39_tlb PRIVATE -mv81)
199+
target_link_options(hsv39_tlb PRIVATE -mv81)
200+
endif()
201+
195202
# QEMU builds both hmx and neg-no-hmx from hmx.c with HMX enabled.
196203
# The negative behavior is selected at QEMU runtime by not using a
197204
# coprocessor-enabled machine, not by compiling without -mhmx.

0 commit comments

Comments
 (0)