diff options
author | Andreas Färber <afaerber@suse.de> | 2013-01-16 19:29:31 +0100 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2013-02-16 14:51:00 +0100 |
commit | d77953b94ff20868b21796ee22ca57baa1cfc941 (patch) | |
tree | c98997e02a8a096cb8a1e72220cc129117a11136 /include/exec/exec-all.h | |
parent | fcd7d0034b7eddba505a548f456f452bf5a7d56c (diff) | |
download | qemu-d77953b94ff20868b21796ee22ca57baa1cfc941.zip qemu-d77953b94ff20868b21796ee22ca57baa1cfc941.tar.gz qemu-d77953b94ff20868b21796ee22ca57baa1cfc941.tar.bz2 |
cpu: Move current_tb field to CPUState
Explictly NULL it on CPU reset since it was located before breakpoints.
Change vapic_report_tpr_access() argument to CPUState. This also
resolves the use of void* for cpu.h independence.
Change vAPIC patch_instruction() argument to X86CPU.
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'include/exec/exec-all.h')
-rw-r--r-- | include/exec/exec-all.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h index f685c28..e856191 100644 --- a/include/exec/exec-all.h +++ b/include/exec/exec-all.h @@ -404,11 +404,13 @@ extern volatile sig_atomic_t exit_request; instruction of a TB so that interrupts take effect immediately. */ static inline int can_do_io(CPUArchState *env) { + CPUState *cpu = ENV_GET_CPU(env); + if (!use_icount) { return 1; } /* If not executing code then assume we are ok. */ - if (!env->current_tb) { + if (cpu->current_tb == NULL) { return 1; } return env->can_do_io != 0; |