target/mips/cpu: Display warning when CPU is used without input clock
commit8a6359f937632d4b47bfaf0640c5acbf73736521
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Mon, 12 Oct 2020 09:58:04 +0000 (12 11:58 +0200)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Sat, 17 Oct 2020 11:59:40 +0000 (17 13:59 +0200)
tree584694b6294e8bf04c1c6112e0badfd9422d4048
parentba25670c1d3e122bfa5a43cd785f5eb4988861d9
target/mips/cpu: Display warning when CPU is used without input clock

All our QOM users provides an input clock. In order to avoid
avoid future machines added without clock, display a warning.

User-mode emulation use the CP0 timer with the RDHWR instruction
(see commit cdfcad788394) so keep using the fixed 200 MHz clock
without diplaying any warning. Only display it in system-mode
emulation.

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20201012095804.3335117-22-f4bug@amsat.org>
target/mips/cpu.c