mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
cpus: Pass CPUState to cpu_is_stopped()
CPUArchState is no longer needed there. Also change the return type to bool. Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
f324e7667a
commit
2fa45344a9
4 changed files with 14 additions and 6 deletions
|
@ -94,5 +94,16 @@ void cpu_reset(CPUState *cpu);
|
|||
*/
|
||||
bool qemu_cpu_is_self(CPUState *cpu);
|
||||
|
||||
/**
|
||||
* cpu_is_stopped:
|
||||
* @cpu: The CPU to check.
|
||||
*
|
||||
* Checks whether the CPU is stopped.
|
||||
*
|
||||
* Returns: %true if run state is not running or if artificially stopped;
|
||||
* %false otherwise.
|
||||
*/
|
||||
bool cpu_is_stopped(CPUState *cpu);
|
||||
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue