target/m68k: only change valid bits in CACR
commit18b6102e51bb317d25ee61b49b7b56702b79560c
authorLaurent Vivier <laurent@vivier.eu>
Fri, 20 Dec 2019 17:24:15 +0000 (20 18:24 +0100)
committerLaurent Vivier <laurent@vivier.eu>
Tue, 7 Jan 2020 13:21:18 +0000 (7 14:21 +0100)
tree75d457c50c6af36a4be9c61680cb9e076b01fbb3
parente24e58e8acdee80ecd5ee8279d56df53b0232a26
target/m68k: only change valid bits in CACR

This is used by netBSD (and MacOS ROM) to detect the MMU type

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Thomas Huth <huth@tuxfamily.org>
Message-Id: <20191220172415.35838-1-laurent@vivier.eu>
[lv: add a comment before m680x0_cpu_common()]
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
target/m68k/cpu.c
target/m68k/cpu.h
target/m68k/helper.c