Revision eda48c34 target-i386/exec.h
b/target-i386/exec.h | ||
---|---|---|
304 | 304 |
return work; |
305 | 305 |
} |
306 | 306 |
|
307 |
static inline int cpu_halted(CPUState *env) { |
|
308 |
/* handle exit of HALTED state */ |
|
309 |
if (!env->halted) |
|
310 |
return 0; |
|
311 |
/* disable halt condition */ |
|
312 |
if (cpu_has_work(env)) { |
|
313 |
env->halted = 0; |
|
314 |
return 0; |
|
315 |
} |
|
316 |
return EXCP_HALTED; |
|
317 |
} |
|
318 |
|
|
319 | 307 |
/* load efer and update the corresponding hflags. XXX: do consistency |
320 | 308 |
checks with cpuid bits ? */ |
321 | 309 |
static inline void cpu_load_efer(CPUState *env, uint64_t val) |
Also available in: Unified diff