aboutsummaryrefslogtreecommitdiff
path: root/cpu-common.h
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2012-12-16 02:17:02 +0100
committerAndreas Färber <afaerber@suse.de>2012-12-19 14:08:56 +0100
commit92a3136174f60ee45b113296cb2c2a5225b00369 (patch)
treeab686fdaa37845ea0551e725c706ab99c9c89885 /cpu-common.h
parent494342b35b55b3b126821141e15c8a49df122ff1 (diff)
cpu: Introduce CPUListState struct
This generalizes {ARM,M68k,Alpha}CPUListState to avoid declaring it for each target. Place it in cpu-common.h to avoid circular dependencies. Signed-off-by: Andreas Färber <afaerber@suse.de> Reviewed-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'cpu-common.h')
-rw-r--r--cpu-common.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/cpu-common.h b/cpu-common.h
index d2fbafac9c..a62b6ea3f9 100644
--- a/cpu-common.h
+++ b/cpu-common.h
@@ -12,6 +12,18 @@
#include "bswap.h"
#include "qemu-queue.h"
+/**
+ * CPUListState:
+ * @cpu_fprintf: Print function.
+ * @file: File to print to using @cpu_fprint.
+ *
+ * State commonly used for iterating over CPU models.
+ */
+typedef struct CPUListState {
+ fprintf_function cpu_fprintf;
+ FILE *file;
+} CPUListState;
+
#if !defined(CONFIG_USER_ONLY)
enum device_endian {