freebsd-dev/sys/powerpc/conf
Brandon Bergren 4efb1ca7d2 [PowerPC64LE] Work around qemu TCG bug in mtmsrd emulation.
The TCG implementation of mtmsrd in qemu blindly copies the entire register
to the MSR, instead of the specific bit positions listed in the ISA.

This means that qemu will prematurely switch endian out from under the
running code instead of waiting for the rfid, causing an immediate trap
as it attempts to interpret the next instruction in the wrong endianness.

To work around this, ensure PSL_LE is still set before doing the mtmsrd.

In the future, we may wish to just turn off translation and unconditionally
use rfid to switch to the ofmsr instead of quasi-switching to the ofmsr.

Add a new platform option so this can be disabled. (And so that we can
conditonalize additional QEMU-specific hacks in the platform code.)

Sponsored by:	Tag1 Consulting, Inc.
2020-09-23 00:09:29 +00:00
..
dpaa Disable new clang 10.0.0 warnings about misleading indentation in 2020-02-17 19:20:47 +00:00
DEFAULTS
GENERIC Include TMPFS in all the GENERIC kernel configs 2020-07-24 08:40:04 +00:00
GENERIC64 [PowerPC64LE] Work around qemu TCG bug in mtmsrd emulation. 2020-09-23 00:09:29 +00:00
GENERIC64-NODEBUG Set MALLOC_DEBUG_MAXZONES=1 in GENERIC-NODEBUG configurations. 2019-11-18 20:03:28 +00:00
GENERIC-NODEBUG Set MALLOC_DEBUG_MAXZONES=1 in GENERIC-NODEBUG configurations. 2019-11-18 20:03:28 +00:00
GENERIC.hints
Makefile
MPC85XX Fix bogusly declared WERRORs in kernel build 2019-08-25 19:39:31 +00:00
MPC85XXSPE Fix bogusly declared WERRORs in kernel build 2019-08-25 19:39:31 +00:00
NOTES [PowerPC64LE] Work around qemu TCG bug in mtmsrd emulation. 2020-09-23 00:09:29 +00:00
QORIQ64 powerpc/qoriq: Add more devices to config for desktop usage 2020-05-16 03:33:28 +00:00