target/mips/cpu: Introduce mips_cpu_create_with_clock() helper
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Mon, 12 Oct 2020 09:57:55 +0000 (11:57 +0200)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Sat, 17 Oct 2020 11:59:40 +0000 (13:59 +0200)
commit7aaab96a9b1c37f473f73363ff815eb059a2f823
treef9f9f2c2fd64269a996f0991e8a701ba11d42a40
parenta0713e85bfaec4d787b978640096322716938a56
target/mips/cpu: Introduce mips_cpu_create_with_clock() helper

Introduce an helper to create a MIPS CPU and connect it to
a reference clock. This helper is not MIPS specific, but so
far only MIPS CPUs need it.

Suggested-by: Huacai Chen <zltjiangshi@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20201012095804.3335117-13-f4bug@amsat.org>
target/mips/cpu.c
target/mips/cpu.h