[Bug 240037] emulators/qemu-user-static: READ_SPECIALREG(ID_AA64ISAR0_EL1) crashes qemu on aarch64

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 14 Aug 2024 16:59:53 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240037

Jesper Schmitz Mouridsen <jsm@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jsm@FreeBSD.org

--- Comment #8 from Jesper Schmitz Mouridsen <jsm@FreeBSD.org> ---
(In reply to Jan Beich from comment #2)
I ended up in work/nss-3.102/nss/lib/freebl/blinit.c :248 

 #elif defined(__FreeBSD__)
    /* qemu-user does not support register access from userspace */
    if (PR_GetEnvSecure("QEMU_EMULATING") == NULL) {
        uint64_t isar0 = READ_SPECIALREG(id_aa64isar0_el1);

 The qemu_*.core dumps are still randomly invalid and off size 64 only I am on
FreeBSD-14.1 as well as 14.0 
so setting QEMU_EMULATING works around it, does poudriere set that?

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.