HomeFreeBSD

[qemu] Fix VERSATILEPB kernel boot in QEMU broken by r300968

Description

[qemu] Fix VERSATILEPB kernel boot in QEMU broken by r300968

QEMU does not implement hardware debug registers so when
dbg_monitor_is_enabled is called kernel receives "invalid instruction"
exception. QEMU implements only DIDR register and on read returns all
zeroes to indicate that it doesn't support other registers. Real
hardware has Version bits set.

MFC after: 1 week

Details

Provenance
gonzoAuthored on Dec 29 2016, 9:55 PM
Parents
rGd73b7a9cdd6d: Use TARGET_ARCH instead of MACHINE_ARCH for MIPS kernel
Branches
Unknown
Tags
Unknown

Event Timeline