So the check is skipped for this particular case. The constraint
has been taken when the error messags are appended.
A precise hint for the error message is given when mc->valid_cpu_types[0]
is the only valid entry. Besides, enumeration on mc->valid_cpu_types[0]
when we have mutiple valid entries there is avoided to increase the code
readability, as suggested by Philippe Mathieu-Daudé.
Signed-off-by: Gavin Shan <gshan@redhat.com>
---
hw/core/machine.c | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)