Revision 7ba1e619 cpu-exec.c
b/cpu-exec.c | ||
---|---|---|
22 | 22 |
#include "exec.h" |
23 | 23 |
#include "disas.h" |
24 | 24 |
#include "tcg.h" |
25 |
#include "kvm.h" |
|
25 | 26 |
|
26 | 27 |
#if !defined(CONFIG_SOFTMMU) |
27 | 28 |
#undef EAX |
... | ... | |
371 | 372 |
} |
372 | 373 |
#endif |
373 | 374 |
|
375 |
if (kvm_enabled()) { |
|
376 |
int ret; |
|
377 |
ret = kvm_cpu_exec(env); |
|
378 |
if ((env->interrupt_request & CPU_INTERRUPT_EXIT)) { |
|
379 |
env->interrupt_request &= ~CPU_INTERRUPT_EXIT; |
|
380 |
env->exception_index = EXCP_INTERRUPT; |
|
381 |
cpu_loop_exit(); |
|
382 |
} else if (env->halted) { |
|
383 |
cpu_loop_exit(); |
|
384 |
} else |
|
385 |
longjmp(env->jmp_env, 1); |
|
386 |
} |
|
387 |
|
|
374 | 388 |
next_tb = 0; /* force lookup of first TB */ |
375 | 389 |
for(;;) { |
376 | 390 |
interrupt_request = env->interrupt_request; |
Also available in: Unified diff