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
This commit is contained in:
Elliott Hughes 2022-11-11 22:54:02 +00:00
parent cf74c0c020
commit 89719df107
1 changed files with 3 additions and 0 deletions

View File

@ -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
}