diff options
author | Claudio Fontana <cfontana@suse.de> | 2020-07-07 11:18:49 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-10-05 16:41:22 +0200 |
commit | e92558e4bf8059ce4f0b310afe218802b72766bc (patch) | |
tree | b73d3b6f5bdc98686d3cc70b31d48472fef18121 /target/i386/hax-all.c | |
parent | 57038a92bb06111fbee57f56c0231359573e805d (diff) |
cpus: extract out hax-specific code to target/i386/
register a "CpusAccel" interface for HAX as well.
Signed-off-by: Claudio Fontana <cfontana@suse.de>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'target/i386/hax-all.c')
-rw-r--r-- | target/i386/hax-all.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/target/i386/hax-all.c b/target/i386/hax-all.c index c93bb23a44..b66ddeb8bf 100644 --- a/target/i386/hax-all.c +++ b/target/i386/hax-all.c @@ -32,9 +32,10 @@ #include "sysemu/accel.h" #include "sysemu/reset.h" #include "sysemu/runstate.h" -#include "qemu/main-loop.h" #include "hw/boards.h" +#include "hax-cpus.h" + #define DEBUG_HAX 0 #define DPRINTF(fmt, ...) \ @@ -374,6 +375,9 @@ static int hax_accel_init(MachineState *ms) !ret ? "working" : "not working", !ret ? "fast virt" : "emulation"); } + if (ret == 0) { + cpus_register_accel(&hax_cpus); + } return ret; } |