pc_isa_bios_init(rom_memory, flash_mem, size);
}
-#ifdef CONFIG_MARU
-extern char* qemu_get_data_dir(void);
-#endif
-
static void old_pc_system_rom_init(MemoryRegion *rom_memory)
{
char *filename;
bios_error:
fprintf(stderr, "qemu: could not load PC BIOS '%s'\n", bios_name);
#ifdef CONFIG_MARU
- char *error_msg = NULL;
- const char *path = qemu_get_data_dir();
- char *bios_path = NULL;
- int bios_len = 0;
-
- bios_len = strlen(path) + strlen("/") + strlen(bios_name) + 1;
- bios_path = g_malloc(bios_len * sizeof(char));
- if (!bios_path) {
- fprintf(stderr, "qemu: failed to allocate memory\n");
- }
- snprintf(bios_path, bios_len, "%s/%s", path, bios_name);
- error_msg = maru_convert_path(error_msg, bios_path);
- maru_register_exit_msg(MARU_EXIT_BIOS_FILE_EXCEPTION, error_msg);
-
- if (bios_path) {
- g_free(bios_path);
- }
- if (error_msg) {
- g_free(error_msg);
- }
+ maru_register_exit_msg(MARU_EXIT_BIOS_FILE_EXCEPTION, bios_name);
#endif
exit(1);
}
return NULL;
}
-#ifdef CONFIG_MARU
-const char *qemu_get_data_dir(void);
-
-const char *qemu_get_data_dir(void)
-{
- return data_dir;
-}
-#endif
-
static int device_help_func(QemuOpts *opts, void *opaque)
{
return qdev_device_help(opts);