Bug 225181

Summary: SLOF Data Storage Exception on boot with kernel built with devel/powerpc64-xtoolchain-gcc
Product: Base System Reporter: Kenneth Salerno <kennethsalerno>
Component: kernAssignee: freebsd-ppc (Nobody) <ppc>
Status: New ---    
Severity: Affects Only Me    
Priority: ---    
Version: 11.1-RELEASE   
Hardware: powerpc   
OS: Any   

Description Kenneth Salerno 2018-01-15 15:43:28 UTC
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.
Comment 1 Kenneth Salerno 2018-01-15 15:49:05 UTC
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.