diff options
author | Paolo Bonzini | 2020-10-27 09:40:02 +0100 |
---|---|---|
committer | Paolo Bonzini | 2020-12-10 18:15:15 +0100 |
commit | 4cd29274729f6bfbb0202563929225bbbb861c1b (patch) | |
tree | 27898f19996c479fbfaddd9c8bb2a1899c9507c5 /hw/microblaze/boot.c | |
parent | vl: start VM via qmp_cont (diff) | |
download | qemu-4cd29274729f6bfbb0202563929225bbbb861c1b.tar.gz qemu-4cd29274729f6bfbb0202563929225bbbb861c1b.tar.xz qemu-4cd29274729f6bfbb0202563929225bbbb861c1b.zip |
hmp: introduce cmd_available
Combine the RUN_STATE_PRECONFIG and cmd_can_preconfig checks
into a single function, to avoid repeating the same expression
(or its negation after applying DeMorgan's rule) over and
over again.
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/microblaze/boot.c')
0 files changed, 0 insertions, 0 deletions