From: Igor Mammedov <imammedo@redhat.com>
To: qemu-devel@nongnu.org
Cc: afaerber@suse.de, ehabkost@redhat.com
Subject: [Qemu-devel] [PATCH] target-arm: cpu: set default cpu_model via QEMUMachine.cpu_model
Date: Tue, 30 Apr 2013 16:48:37 +0200 [thread overview]
Message-ID: <1367333317-31468-1-git-send-email-imammedo@redhat.com> (raw)
In-Reply-To: <20130430143043.GE28606@otherpad.lan.raisama.net>
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
---
compile tested only ...
---
hw/arm/realview.c | 16 ++++------------
hw/arm/versatilepb.c | 5 ++---
2 files changed, 6 insertions(+), 15 deletions(-)
diff --git a/hw/arm/realview.c b/hw/arm/realview.c
index d6f47bf..5327b66 100644
--- a/hw/arm/realview.c
+++ b/hw/arm/realview.c
@@ -334,33 +334,21 @@ static void realview_init(QEMUMachineInitArgs *args,
static void realview_eb_init(QEMUMachineInitArgs *args)
{
- if (!args->cpu_model) {
- args->cpu_model = "arm926";
- }
realview_init(args, BOARD_EB);
}
static void realview_eb_mpcore_init(QEMUMachineInitArgs *args)
{
- if (!args->cpu_model) {
- args->cpu_model = "arm11mpcore";
- }
realview_init(args, BOARD_EB_MPCORE);
}
static void realview_pb_a8_init(QEMUMachineInitArgs *args)
{
- if (!args->cpu_model) {
- args->cpu_model = "cortex-a8";
- }
realview_init(args, BOARD_PB_A8);
}
static void realview_pbx_a9_init(QEMUMachineInitArgs *args)
{
- if (!args->cpu_model) {
- args->cpu_model = "cortex-a9";
- }
realview_init(args, BOARD_PBX_A9);
}
@@ -369,6 +357,7 @@ static QEMUMachine realview_eb_machine = {
.desc = "ARM RealView Emulation Baseboard (ARM926EJ-S)",
.init = realview_eb_init,
.block_default_type = IF_SCSI,
+ .cpu_model = "arm926",
DEFAULT_MACHINE_OPTIONS,
};
@@ -378,6 +367,7 @@ static QEMUMachine realview_eb_mpcore_machine = {
.init = realview_eb_mpcore_init,
.block_default_type = IF_SCSI,
.max_cpus = 4,
+ .cpu_model = "arm11mpcore",
DEFAULT_MACHINE_OPTIONS,
};
@@ -385,6 +375,7 @@ static QEMUMachine realview_pb_a8_machine = {
.name = "realview-pb-a8",
.desc = "ARM RealView Platform Baseboard for Cortex-A8",
.init = realview_pb_a8_init,
+ .cpu_model = "cortex-a8",
DEFAULT_MACHINE_OPTIONS,
};
@@ -394,6 +385,7 @@ static QEMUMachine realview_pbx_a9_machine = {
.init = realview_pbx_a9_init,
.block_default_type = IF_SCSI,
.max_cpus = 4,
+ .cpu_model = "cortex-a9",
DEFAULT_MACHINE_OPTIONS,
};
diff --git a/hw/arm/versatilepb.c b/hw/arm/versatilepb.c
index 753757e..b7d0d24 100644
--- a/hw/arm/versatilepb.c
+++ b/hw/arm/versatilepb.c
@@ -185,9 +185,6 @@ static void versatile_init(QEMUMachineInitArgs *args, int board_id)
int done_smc = 0;
DriveInfo *dinfo;
- if (!args->cpu_model) {
- args->cpu_model = "arm926";
- }
cpu = cpu_arm_init(args->cpu_model);
if (!cpu) {
fprintf(stderr, "Unable to find CPU definition\n");
@@ -362,6 +359,7 @@ static QEMUMachine versatilepb_machine = {
.desc = "ARM Versatile/PB (ARM926EJ-S)",
.init = vpb_init,
.block_default_type = IF_SCSI,
+ .cpu_model = "arm926",
DEFAULT_MACHINE_OPTIONS,
};
@@ -370,6 +368,7 @@ static QEMUMachine versatileab_machine = {
.desc = "ARM Versatile/AB (ARM926EJ-S)",
.init = vab_init,
.block_default_type = IF_SCSI,
+ .cpu_model = "arm926",
DEFAULT_MACHINE_OPTIONS,
};
--
1.7.1
next prev parent reply other threads:[~2013-04-30 14:51 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-30 13:41 [Qemu-devel] [PATCH 0/5 v9 for-1.5] target-i386: CPU hot-add with cpu-add QMP command Igor Mammedov
2013-04-30 13:41 ` [Qemu-devel] [PATCH 1/5] add hot_add_cpu hook to QEMUMachine Igor Mammedov
2013-04-30 14:19 ` Eduardo Habkost
2013-04-30 15:48 ` Andreas Färber
2013-04-30 13:41 ` [Qemu-devel] [PATCH 2/5] QMP: add cpu-add command Igor Mammedov
2013-04-30 14:19 ` Eduardo Habkost
2013-04-30 15:58 ` Andreas Färber
2013-04-30 13:41 ` [Qemu-devel] [PATCH 3/5] add cpu_model to QEMUMachine Igor Mammedov
2013-04-30 14:30 ` Eduardo Habkost
2013-04-30 14:48 ` Igor Mammedov [this message]
2013-04-30 14:55 ` [Qemu-devel] [PATCH] target-arm: cpu: set default cpu_model via QEMUMachine.cpu_model Peter Maydell
2013-04-30 15:01 ` Igor Mammedov
2013-04-30 15:06 ` Eduardo Habkost
2013-04-30 14:54 ` [Qemu-devel] [PATCH 3/5] add cpu_model to QEMUMachine Peter Maydell
2013-04-30 15:14 ` Igor Mammedov
2013-04-30 15:32 ` Peter Maydell
2013-04-30 13:41 ` [Qemu-devel] [PATCH 4/5] target-i386: get default cpu_model from QEMUMachine Igor Mammedov
2013-04-30 14:47 ` Eduardo Habkost
2013-04-30 13:41 ` [Qemu-devel] [PATCH 5/5] target-i386: implement machine->hot_add_cpu hook Igor Mammedov
2013-04-30 16:00 ` Igor Mammedov
2013-04-30 16:31 ` Eduardo Habkost
2013-05-01 19:32 ` Andreas Färber
2013-05-02 7:18 ` Igor Mammedov
2013-05-02 11:46 ` Andreas Färber
2013-04-30 16:32 ` [Qemu-devel] [PATCH 5/5 v10] " Igor Mammedov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1367333317-31468-1-git-send-email-imammedo@redhat.com \
--to=imammedo@redhat.com \
--cc=afaerber@suse.de \
--cc=ehabkost@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).