spapr: Force 32bit when resetting a core
commit6e3f09c28a2e1767dddaf08b2f1414cd57c6c909
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Fri, 28 Jan 2022 12:15:01 +0000 (28 13:15 +0100)
committerCédric Le Goater <clg@kaod.org>
Fri, 28 Jan 2022 12:15:01 +0000 (28 13:15 +0100)
tree547c2caad67ba169d95b0712db845df9c170adb2
parentcfe63e46be0a1f8a7fd2fd5547222f8344a43279
spapr: Force 32bit when resetting a core

"PowerPC Processor binding to IEEE 1275" says in
"8.2.1. Initial Register Values" that the initial state is defined as
32bit so do it for both SLOF and VOF.

This should not cause behavioral change as SLOF switches to 64bit very
early anyway. As nothing enforces LE anywhere, this drops it for VOF.

The goal is to make VOF work with TCG as otherwise it barfs with
qemu: fatal: TCG hflags mismatch (current:0x6c000004 rebuilt:0x6c000000)

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Message-Id: <20220107072423.2278113-1-aik@ozlabs.ru>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
hw/ppc/spapr_cpu_core.c
hw/ppc/spapr_vof.c