11.1-RELEASE kernel built with XCC devel/powerpc64-xtoolchain-gcc (GCC 6.3.1) fails to boot from qemu-system-ppc64 -m pseries (SLOF fw) with Data Storage Exception. Crashes just before CPU detection (following FreeBSD version banner).
The same kernel built without XCC boots as expected.
Please let me know what output or logs would be useful to troubleshoot this issue. It is not clear to me if this is a SLOF stack issue or compiler issue.
Also want to add I am running an older version of SLOF (packaged with QEMU 2.4.1) because the latest SLOF packaged with QEMU 2.10.2 fails to read superblock of boot disk (MBR/dos label) and cannot even bootstrap FreeBSD, so I have no way of knowing if this was fixed in a more current SLOF or not. But again, I need assistance to first determine if this is a compiler issue or SLOF issue.