mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -06:00
tests: Remove uses of deprecated raspi2/raspi3 machine names
Commit 155e1c82ed
deprecated the raspi2/raspi3 machine names.
Use the recommended new names: raspi2b and raspi3b.
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Willian Rampazzo <willianr@redhat.com>
Message-id: 20210827060815.2384760-2-f4bug@amsat.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
ec397e90d2
commit
cd066eea60
7 changed files with 32 additions and 32 deletions
|
@ -42,7 +42,7 @@ static void *raspi2_get_driver(void *object, const char *interface)
|
|||
return &machine->alloc;
|
||||
}
|
||||
|
||||
fprintf(stderr, "%s not present in arm/raspi2\n", interface);
|
||||
fprintf(stderr, "%s not present in arm/raspi2b\n", interface);
|
||||
g_assert_not_reached();
|
||||
}
|
||||
|
||||
|
@ -53,7 +53,7 @@ static QOSGraphObject *raspi2_get_device(void *obj, const char *device)
|
|||
return &machine->sdhci.obj;
|
||||
}
|
||||
|
||||
fprintf(stderr, "%s not present in arm/raspi2\n", device);
|
||||
fprintf(stderr, "%s not present in arm/raspi2b\n", device);
|
||||
g_assert_not_reached();
|
||||
}
|
||||
|
||||
|
@ -85,8 +85,8 @@ static void *qos_create_machine_arm_raspi2(QTestState *qts)
|
|||
|
||||
static void raspi2_register_nodes(void)
|
||||
{
|
||||
qos_node_create_machine("arm/raspi2", qos_create_machine_arm_raspi2);
|
||||
qos_node_contains("arm/raspi2", "generic-sdhci", NULL);
|
||||
qos_node_create_machine("arm/raspi2b", qos_create_machine_arm_raspi2);
|
||||
qos_node_contains("arm/raspi2b", "generic-sdhci", NULL);
|
||||
}
|
||||
|
||||
libqos_init(raspi2_register_nodes);
|
||||
|
|
|
@ -252,17 +252,17 @@ void qos_node_create_driver_named(const char *name, const char *qemu_name,
|
|||
* This function can be useful when there are multiple devices
|
||||
* with the same node name contained in a machine/other node
|
||||
*
|
||||
* For example, if ``arm/raspi2`` contains 2 ``generic-sdhci``
|
||||
* For example, if ``arm/raspi2b`` contains 2 ``generic-sdhci``
|
||||
* devices, the right commands will be:
|
||||
*
|
||||
* .. code::
|
||||
*
|
||||
* qos_node_create_machine("arm/raspi2");
|
||||
* qos_node_create_machine("arm/raspi2b");
|
||||
* qos_node_create_driver("generic-sdhci", constructor);
|
||||
* // assume rest of the fields are set NULL
|
||||
* QOSGraphEdgeOptions op1 = { .edge_name = "emmc" };
|
||||
* QOSGraphEdgeOptions op2 = { .edge_name = "sdcard" };
|
||||
* qos_node_contains("arm/raspi2", "generic-sdhci", &op1, &op2, NULL);
|
||||
* qos_node_contains("arm/raspi2b", "generic-sdhci", &op1, &op2, NULL);
|
||||
*
|
||||
* Of course this also requires that the @container's get_device function
|
||||
* should implement a case for "emmc" and "sdcard".
|
||||
|
|
|
@ -230,7 +230,7 @@ void qos_graph_foreach_test_path(QOSTestCallback fn);
|
|||
/**
|
||||
* qos_get_machine_type(): return QEMU machine type for a machine node.
|
||||
* This function requires every machine @name to be in the form
|
||||
* <arch>/<machine_name>, like "arm/raspi2" or "x86_64/pc".
|
||||
* <arch>/<machine_name>, like "arm/raspi2b" or "x86_64/pc".
|
||||
*
|
||||
* The function will validate the format and return a pointer to
|
||||
* @machine to <machine_name>. For example, when passed "x86_64/pc"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue