it will be used for providing to cpu name resolving class for parsing cpu model for system and user emulation code.
PC: target cpu can't be instantiated with -M none -cpu Add FIXME note in test, so microblaze maintainers could fix it in future and add proper error checking in cpu_model resolver which accepts any junk now. Signed-off-by: Igor Mammedov <imamm...@redhat.com> --- CC: "Edgar E. Iglesias" <edgar.igles...@gmail.com> --- target/microblaze/cpu.h | 1 + tests/machine-none-test.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/target/microblaze/cpu.h b/target/microblaze/cpu.h index 52b6b6a..492f9f7 100644 --- a/target/microblaze/cpu.h +++ b/target/microblaze/cpu.h @@ -344,6 +344,7 @@ int cpu_mb_signal_handler(int host_signum, void *pinfo, #define TARGET_VIRT_ADDR_SPACE_BITS 32 #define cpu_init(cpu_model) cpu_generic_init(TYPE_MICROBLAZE_CPU, cpu_model) +#define CPU_RESOLVING_TYPE TYPE_MICROBLAZE_CPU #define cpu_signal_handler cpu_mb_signal_handler diff --git a/tests/machine-none-test.c b/tests/machine-none-test.c index c9445b6..984def6 100644 --- a/tests/machine-none-test.c +++ b/tests/machine-none-test.c @@ -32,6 +32,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 */ }; static const char *get_cpu_model_by_arch(const char *arch) -- 2.7.4