diff options
Diffstat (limited to 'target-i386')
-rw-r--r-- | target-i386/cpu.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 7dc6f6286b..ae9024653c 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c @@ -3271,7 +3271,11 @@ static void x86_cpu_realizefn(DeviceState *dev, Error **errp) cpu->phys_bits = 32; } } - cpu_exec_init(cs, &error_abort); + cpu_exec_realizefn(cs, &local_err); + if (local_err != NULL) { + error_propagate(errp, local_err); + return; + } if (tcg_enabled()) { tcg_x86_init(); |