Integrated: 8352730: RISC-V: Disable tests in qemu-user
Robbin Ehn
rehn at openjdk.org
Mon May 5 11:46:55 UTC 2025
On Tue, 25 Mar 2025 14:19:55 GMT, Robbin Ehn <rehn at openjdk.org> wrote:
> Hi, for you to consider.
>
> These tests constantly fails in qemu-user.
> Either the require host to be same arch explicit or implicit (sysroot).
> E.g. "ptrace(PTRACE_ATTACH, ..) failed for 405157: Function not implemented'" for SA tests.
>
> From bug:
>> qemu-user/rv64 sets uarch to "qemu" in /proc/cpuinfo (qemu-system do not do that).
>> We add this uarch to CPU feature string.
>> This means we can use jtreg 'require' with cpu string to filter out tests in qemu-user.
>
> Relevant qemu code:
> https://github.com/qemu/qemu/blob/170825d14d88a1ce7fae98d5a928480f2f329b22/linux-user/riscv/target_proc.h#L29
>
> Relevant hotspot code:
> https://github.com/openjdk/jdk/blob/fa0b18bfde38ee2ffbab33a9eaac547fe8aa3c7c/src/hotspot/os_cpu/linux_riscv/vm_version_linux_riscv.cpp#L250
>
> Tested that the require only filters out tests in qemu+riscv64.
>
> Thanks!
>
> /Robbin
This pull request has now been integrated.
Changeset: 02647976
Author: Robbin Ehn <rehn at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/026479767c011227b63e7fdb8a38f61977782249
Stats: 71 lines in 64 files changed: 71 ins; 0 del; 0 mod
8352730: RISC-V: Disable tests in qemu-user
Reviewed-by: fyang, mli
-------------
PR: https://git.openjdk.org/jdk/pull/24229
More information about the core-libs-dev
mailing list