diff options
author | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2022-03-14 15:01:08 +0100 |
---|---|---|
committer | Thomas Huth <thuth@redhat.com> | 2022-03-16 08:43:10 +0100 |
commit | 377bf6f37da11d14641a0e973c4ed272259cca9c (patch) | |
tree | f7c029e8be6f0f884203b16e2dc1cda28f431a03 /include/sysemu | |
parent | 46697cb96e1cc6c3f1edbe572cee1ce9ac97cc58 (diff) | |
download | qemu-377bf6f37da11d14641a0e973c4ed272259cca9c.zip qemu-377bf6f37da11d14641a0e973c4ed272259cca9c.tar.gz qemu-377bf6f37da11d14641a0e973c4ed272259cca9c.tar.bz2 |
softmmu: List CPU types again
Commit e0220bb5b2 made cpus.c target-agnostic but didn't notice
the cpu_list() function is only defined in target-specific code
in "cpu.h". Move list_cpus() declaration to "exec/cpu-common.h"
because this function is not softmmu-specific and can also be
used by user-mode, along with moving its implementation to cpu.c,
which is compiled per target.
Fixes: e0220bb5b2 ("softmmu: Build target-agnostic objects once")
Reported-by: Max Filippov <jcmvbkbc@gmail.com>
Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20220314140108.26222-1-philippe.mathieu.daude@gmail.com>
Tested-by: Max Filippov <jcmvbkbc@gmail.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'include/sysemu')
-rw-r--r-- | include/sysemu/cpus.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/sysemu/cpus.h b/include/sysemu/cpus.h index 868f119..b5c87d4 100644 --- a/include/sysemu/cpus.h +++ b/include/sysemu/cpus.h @@ -55,6 +55,4 @@ extern int smp_cores; extern int smp_threads; #endif -void list_cpus(const char *optarg); - #endif |