Skip to content

Commit

Permalink
tests: machine-none-test: Enable MicroBlaze testing
Browse files Browse the repository at this point in the history
Enable MicroBlaze testing.

Signed-off-by: Edgar E. Iglesias <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
  • Loading branch information
edgarigl authored and bonzini committed Jun 10, 2020
1 parent 4d1d460 commit bbad173
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tests/qtest/machine-none-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ static struct arch2cpu cpus_map[] = {
{ "cris", "crisv32" },
{ "lm32", "lm32-full" },
{ "m68k", "m5206" },
/* FIXME: { "microblaze", "any" }, doesn't work with -M none -cpu any */
/* FIXME: { "microblazeel", "any" }, doesn't work with -M none -cpu any */
{ "microblaze", "any" },
{ "microblazeel", "any" },
{ "mips", "4Kc" },
{ "mipsel", "I7200" },
{ "mips64", "20Kc" },
Expand Down Expand Up @@ -79,10 +79,8 @@ static void test_machine_cpu_cli(void)
QTestState *qts;

if (!cpu_model) {
if (!(!strcmp(arch, "microblaze") || !strcmp(arch, "microblazeel"))) {
fprintf(stderr, "WARNING: cpu name for target '%s' isn't defined,"
" add it to cpus_map\n", arch);
}
fprintf(stderr, "WARNING: cpu name for target '%s' isn't defined,"
" add it to cpus_map\n", arch);
return; /* TODO: die here to force all targets have a test */
}
qts = qtest_initf("-machine none -cpu '%s'", cpu_model);
Expand Down

0 comments on commit bbad173

Please sign in to comment.