mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -06:00
tests/x86: Use 'pc' machine type for old hardware tests
For tests that rely on old hardware, e.g. floppies or IDE drives, explicitly select the 'pc' machine type. Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Message-Id: <20220215162537.605030-2-dgilbert@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
e670f6d825
commit
fedcc3793e
4 changed files with 13 additions and 6 deletions
|
@ -35,7 +35,7 @@ static QPCIBus *test_start_get_bus(const TestData *s)
|
|||
{
|
||||
char *cmdline;
|
||||
|
||||
cmdline = g_strdup_printf("-smp %d", s->num_cpus);
|
||||
cmdline = g_strdup_printf("-machine pc -smp %d", s->num_cpus);
|
||||
qtest_start(cmdline);
|
||||
g_free(cmdline);
|
||||
return qpci_new_pc(global_qtest, NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue