From 89719df10778e0f8405ce5904d936517b0b4116c Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Fri, 11 Nov 2022 22:54:02 +0000 Subject: [PATCH] Update sys_ptrace_test.cpp for riscv64. We'll want to come back to this once either Zcmp's push/pop instructions or V's vector loads/stores are available. But for now, we have no >64b stores. But at least this builds. Test: treehugger Change-Id: I9503e890cacb198f4ba987bfc92f6eff21c290b0 --- tests/sys_ptrace_test.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/sys_ptrace_test.cpp b/tests/sys_ptrace_test.cpp index a079eaddf..b8c1537b5 100644 --- a/tests/sys_ptrace_test.cpp +++ b/tests/sys_ptrace_test.cpp @@ -257,6 +257,9 @@ static void watchpoint_imprecise_child(Uint128_t& data) { asm volatile("stm %0, { r0, r1, r2, r3 }" : : "r"(&data)); #elif defined(__aarch64__) asm volatile("stp x0, x1, %0" : : "m"(data)); +#elif defined(__riscv) + UNUSED(data); + GTEST_LOG_(INFO) << "missing riscv64 instruction to store > 64 bits in one instruction"; #endif }