mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
target: Replace DEVICE(object_new) -> qdev_new()
Prefer QDev API for QDev objects, avoid the underlying QOM layer. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Message-Id: <20240216110313.17039-8-philmd@linaro.org>
This commit is contained in:
parent
f09a8d8dc9
commit
b708e31185
2 changed files with 2 additions and 2 deletions
|
@ -644,7 +644,7 @@ MIPSCPU *mips_cpu_create_with_clock(const char *cpu_type, Clock *cpu_refclk,
|
|||
{
|
||||
DeviceState *cpu;
|
||||
|
||||
cpu = DEVICE(object_new(cpu_type));
|
||||
cpu = qdev_new(cpu_type);
|
||||
qdev_connect_clock_in(cpu, "clk-in", cpu_refclk);
|
||||
object_property_set_bool(OBJECT(cpu), "big-endian", is_big_endian,
|
||||
&error_abort);
|
||||
|
|
|
@ -208,7 +208,7 @@ XtensaCPU *xtensa_cpu_create_with_clock(const char *cpu_type, Clock *cpu_refclk)
|
|||
{
|
||||
DeviceState *cpu;
|
||||
|
||||
cpu = DEVICE(object_new(cpu_type));
|
||||
cpu = qdev_new(cpu_type);
|
||||
qdev_connect_clock_in(cpu, "clk-in", cpu_refclk);
|
||||
qdev_realize(cpu, NULL, &error_abort);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue