aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2007-03-08 03:15:18 +0000
committerpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2007-03-08 03:15:18 +0000
commit5adb4839e3c35382832bedc7155b3317b7b7d560 (patch)
tree974b3d8d697b76312050d2ee460f4c1574d7fd3c
parent3371d27293dc40159069d6593da22ba77ac8513c (diff)
downloadqemu-5adb4839e3c35382832bedc7155b3317b7b7d560.zip
qemu-5adb4839e3c35382832bedc7155b3317b7b7d560.tar.gz
qemu-5adb4839e3c35382832bedc7155b3317b7b7d560.tar.bz2
Fix typo in help output.
List ARM cpus. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2475 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r--target-arm/cpu.h1
-rw-r--r--target-arm/helper.c10
-rw-r--r--vl.c4
3 files changed, 14 insertions, 1 deletions
diff --git a/target-arm/cpu.h b/target-arm/cpu.h
index b3b37eb..891616e 100644
--- a/target-arm/cpu.h
+++ b/target-arm/cpu.h
@@ -209,6 +209,7 @@ static inline int arm_feature(CPUARMState *env, int feature)
return (env->features & (1u << feature)) != 0;
}
+void arm_cpu_list(void);
void cpu_arm_set_model(CPUARMState *env, const char *name);
#define ARM_CPUID_ARM1026 0x4106a262
diff --git a/target-arm/helper.c b/target-arm/helper.c
index 093acc9..36f5fe0 100644
--- a/target-arm/helper.c
+++ b/target-arm/helper.c
@@ -47,6 +47,16 @@ static const struct arm_cpu_t arm_cpu_names[] = {
{ 0, NULL}
};
+void arm_cpu_list(void)
+{
+ int i;
+
+ printf ("Available CPUs:\n");
+ for (i = 0; arm_cpu_names[i].name; i++) {
+ printf(" %s\n", arm_cpu_names[i].name);
+ }
+}
+
void cpu_arm_set_model(CPUARMState *env, const char *name)
{
int i;
diff --git a/vl.c b/vl.c
index 09d7baf..e871c8c 100644
--- a/vl.c
+++ b/vl.c
@@ -6355,7 +6355,7 @@ void help(void)
"\n"
"Standard options:\n"
"-M machine select emulated machine (-M ? for list)\n"
- "-cpu cpu select CPU (-C ? for list)\n"
+ "-cpu cpu select CPU (-cpu ? for list)\n"
"-fda/-fdb file use 'file' as floppy disk 0/1 image\n"
"-hda/-hdb file use 'file' as IDE hard disk 0/1 image\n"
"-hdc/-hdd file use 'file' as IDE hard disk 2/3 image\n"
@@ -7004,6 +7004,8 @@ int main(int argc, char **argv)
if (optarg[0] == '?') {
#if defined(TARGET_PPC)
ppc_cpu_list(stdout, &fprintf);
+#elif defined(TARGET_ARM)
+ arm_cpu_list();
#endif
exit(1);
} else {