google / google/android-riscv64

bionic/tests/sys_ptrace_test.cpp: add an instruction that writes more than 64 bits

Open
#5 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
254
Forks
20
PR merge metrics
No merged PRs in 30d

Description

we need to grab a V instruction to finish the missing piece of this test:
```
static void watchpoint_imprecise_child(Uint128_t& data) {
raise(SIGSTOP); // Synchronize with the tracer, let it set the watchpoint.

#if defined(__i386__) || defined(__x86_64__)
asm volatile("movdqa %%xmm0, %0" : : "m"(data));
#elif defined(__arm__)
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
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.