diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2012-08-08 14:07:14 +0400 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2012-08-09 18:37:30 +0000 |
commit | e38077ff90fac002038805d17044aa05f4f54c24 (patch) | |
tree | f9e6583c8ad3a1b7516f5ee78e27cf4511b51ad0 /hw/xtensa_sim.c | |
parent | f1cb0951c5298753652a73cfd8efc0b1a82f37de (diff) |
target-xtensa: make default CPU depend on target endianness
This makes usable default for -cpu option both for qemu-system-xtensa
and qemu-system-xtensaeb fixing the following error:
$ qemu-system-xtensaeb -M sim
Unable to find CPU definition
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Tested-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/xtensa_sim.c')
-rw-r--r-- | hw/xtensa_sim.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/xtensa_sim.c b/hw/xtensa_sim.c index 1ce07fb899..ed38bd425d 100644 --- a/hw/xtensa_sim.c +++ b/hw/xtensa_sim.c @@ -102,7 +102,7 @@ static void xtensa_sim_init(ram_addr_t ram_size, const char *initrd_filename, const char *cpu_model) { if (!cpu_model) { - cpu_model = "dc232b"; + cpu_model = XTENSA_DEFAULT_CPU_MODEL; } sim_init(ram_size, boot_device, kernel_filename, kernel_cmdline, initrd_filename, cpu_model); @@ -110,7 +110,7 @@ static void xtensa_sim_init(ram_addr_t ram_size, static QEMUMachine xtensa_sim_machine = { .name = "sim", - .desc = "sim machine (dc232b)", + .desc = "sim machine (" XTENSA_DEFAULT_CPU_MODEL ")", .init = xtensa_sim_init, .max_cpus = 4, }; |