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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240037

--- Comment #5 from [hidden email] ---
Created attachment 210757
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=210757&action=edit
patch

Can you try the attached patch (it's for
/usr/ports/emulators/qemu-user-static-devel).
It seems to work here, I tried with this program but I haven't checked if the
returned value are sane:

#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <machine/armreg.h>
#include <machine/_stdint.h>

int
main(int argc, char **argv)
{
        uint64_t id_aa64isar0, id_aa64pfr0;
        id_aa64isar0 = READ_SPECIALREG(id_aa64isar0_EL1);
        id_aa64pfr0 = READ_SPECIALREG(id_aa64pfr0_EL1);

        printf("id_aa64isar0: 0x%lx, id_aa64pfr0: 0x%lx\n", id_aa64isar0,
id_aa64pfr0);
        return (0);
}

./identcpu
id_aa64isar0: 0x111110012120, id_aa64pfr0: 0x110000

I haven't tried qemu-user-static.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to "[hidden email]"