diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-05-23 08:12:04 +0200 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2023-06-09 23:38:16 +0300 |
commit | bec552e2cdb1950e2cd5f1853c396ea91ec80253 (patch) | |
tree | bc920cc133166031d9ac79236ad32752fdc39450 | |
parent | d8ca9712f58f05f5668c43678f132330f2636ac3 (diff) | |
download | qemu-bec552e2cdb1950e2cd5f1853c396ea91ec80253.zip qemu-bec552e2cdb1950e2cd5f1853c396ea91ec80253.tar.gz qemu-bec552e2cdb1950e2cd5f1853c396ea91ec80253.tar.bz2 |
hw/core/cpu: Simplify realize() using MACHINE_GET_CLASS() macro
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
-rw-r--r-- | hw/core/cpu-common.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/core/cpu-common.c b/hw/core/cpu-common.c index f4e51c8..ced66c2 100644 --- a/hw/core/cpu-common.c +++ b/hw/core/cpu-common.c @@ -196,8 +196,7 @@ static void cpu_common_realizefn(DeviceState *dev, Error **errp) * no need to check the ignore_memory_transaction_failures board flag. */ if (object_dynamic_cast(machine, TYPE_MACHINE)) { - ObjectClass *oc = object_get_class(machine); - MachineClass *mc = MACHINE_CLASS(oc); + MachineClass *mc = MACHINE_GET_CLASS(machine); if (mc) { cpu->ignore_memory_transaction_failures = |