diff options
| author | David Gibson | 2018-03-23 02:55:04 +0100 |
|---|---|---|
| committer | David Gibson | 2018-04-27 10:05:22 +0200 |
| commit | 197600ecc4f81b9be5e233d8a1cbf42a48cdd371 (patch) | |
| tree | 52147ba395760a5946f8cb58c299ebbd602ce33e /include | |
| parent | target/ppc: Standardize instance_init and realize function names (diff) | |
| download | qemu-197600ecc4f81b9be5e233d8a1cbf42a48cdd371.tar.gz qemu-197600ecc4f81b9be5e233d8a1cbf42a48cdd371.tar.xz qemu-197600ecc4f81b9be5e233d8a1cbf42a48cdd371.zip | |
target/ppc: Simplify cpu valid check in ppc_cpu_realize
The #if isn't necessary, because there's a suitable one inside
ppc_cpu_is_valid(). We've already filtered for suitable cpu models in the
functions that search and register them. So by the time we get to realize
having an invalid one indicates a code error, not a user error, so an
assert() is more appropriate than error_setg().
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Greg Kurz <groug@kaod.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
