target/mips/cpu: Allow the CPU to use dynamic frequencies
commita0713e85bfaec4d787b978640096322716938a56
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Mon, 12 Oct 2020 09:57:54 +0000 (12 11:57 +0200)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Sat, 17 Oct 2020 11:59:40 +0000 (17 13:59 +0200)
treeda50692f413846d267b24a0d523fd37104810feb
parentd0bec217ee0f6c948ba4579ca0f43a1a3f346cb4
target/mips/cpu: Allow the CPU to use dynamic frequencies

Use the Clock API and let the CPU object have an input clock.

If no clock is connected, keep using the default frequency of
200 MHz used since the introduction of the 'r4k' machine in
commit 6af0bf9c7c3.

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