I'm trying to chroot into an x86-64 (built using -march=icelake-client) system from another x86-64 system who's CPU has incompatible instructions to icelake-client (znver1). Therefore I used qemu softmmu (user space emulation) to chroot into it --
chroot /usr/x86_64-mypl-linux-gnu/ /qemu-x86_64 -cpu max /bin/bash
Where /qemu-x86_64 is a static binary copied over from the host machine to /usr/x86_64-mypl-linux-gnu/
However the chroot fails with --
Code: Select all
qemu: uncaught target signal 4 (Illegal instruction) - core dumped
Illegal instruction (core dumped)
So some instructions in icelake-client is not supported by qemu. I want to figure out these instructions and disable them in C(XX)FLAGS. How do I determine these instructions?
BTW I very well know this is some avx512 thing -- but exactly which one in avx512, I don't know.