summaryrefslogtreecommitdiffstats
path: root/hw/sh4
diff options
context:
space:
mode:
authorPeter Maydell2014-05-28 19:38:38 +0200
committerPeter Maydell2014-05-28 19:38:39 +0200
commitd7d3d6092cb7edc75dc49fb90c86dd5425ab4805 (patch)
treeea3820e7a4e5f51bd1b7b51003546ebb70486b70 /hw/sh4
parentMerge remote-tracking branch 'remotes/rth/tcg-next' into staging (diff)
parentssi: Name the CS GPIO (diff)
downloadqemu-d7d3d6092cb7edc75dc49fb90c86dd5425ab4805.tar.gz
qemu-d7d3d6092cb7edc75dc49fb90c86dd5425ab4805.tar.xz
qemu-d7d3d6092cb7edc75dc49fb90c86dd5425ab4805.zip
Merge remote-tracking branch 'remotes/afaerber/tags/qom-devices-for-peter' into staging
QOM/QTest infrastructure fixes and device conversions * qom-test extension * QEMUMachineInitArgs conversion to MachineState * -machine options turned into /machine properties * Named GPIO IRQs for devices # gpg: Signature made Wed 28 May 2014 18:24:04 BST using RSA key ID 3E7E013F # gpg: Can't check signature: public key not found * remotes/afaerber/tags/qom-devices-for-peter: ssi: Name the CS GPIO qdev: Implement named GPIOs machine: Make -machine opts properties of MachineState tests: Check empty QMP output visitor qapi: Avoid output visitor crashing if it encounters a NULL value vl.c: Do not set 'type' property in obj_set_property() machine: Conversion of QEMUMachineInitArgs to MachineState qom-test: Test qom-list on link<> properties Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/sh4')
-rw-r--r--hw/sh4/r2d.c10
-rw-r--r--hw/sh4/shix.c4
2 files changed, 7 insertions, 7 deletions
diff --git a/hw/sh4/r2d.c b/hw/sh4/r2d.c
index eaeb7ede4e..95c0246d47 100644
--- a/hw/sh4/r2d.c
+++ b/hw/sh4/r2d.c
@@ -219,12 +219,12 @@ static struct QEMU_PACKED
char kernel_cmdline[256];
} boot_params;
-static void r2d_init(QEMUMachineInitArgs *args)
+static void r2d_init(MachineState *machine)
{
- const char *cpu_model = args->cpu_model;
- const char *kernel_filename = args->kernel_filename;
- const char *kernel_cmdline = args->kernel_cmdline;
- const char *initrd_filename = args->initrd_filename;
+ const char *cpu_model = machine->cpu_model;
+ const char *kernel_filename = machine->kernel_filename;
+ const char *kernel_cmdline = machine->kernel_cmdline;
+ const char *initrd_filename = machine->initrd_filename;
SuperHCPU *cpu;
CPUSH4State *env;
ResetData *reset_info;
diff --git a/hw/sh4/shix.c b/hw/sh4/shix.c
index 904a966700..7c152b4a3a 100644
--- a/hw/sh4/shix.c
+++ b/hw/sh4/shix.c
@@ -39,9 +39,9 @@
#define BIOS_FILENAME "shix_bios.bin"
#define BIOS_ADDRESS 0xA0000000
-static void shix_init(QEMUMachineInitArgs *args)
+static void shix_init(MachineState *machine)
{
- const char *cpu_model = args->cpu_model;
+ const char *cpu_model = machine->cpu_model;
int ret;
SuperHCPU *cpu;
struct SH7750State *s;