mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-26 03:21:50 -06:00
hw/xtensa/xtfpga: retrieve parameters from machine_opts
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
This commit is contained in:
parent
8488ab021b
commit
37b259d034
1 changed files with 3 additions and 2 deletions
|
@ -174,9 +174,10 @@ static void lx_init(const LxBoardDesc *board, MachineState *machine)
|
||||||
MemoryRegion *ram, *rom, *system_io;
|
MemoryRegion *ram, *rom, *system_io;
|
||||||
DriveInfo *dinfo;
|
DriveInfo *dinfo;
|
||||||
pflash_t *flash = NULL;
|
pflash_t *flash = NULL;
|
||||||
|
QemuOpts *machine_opts = qemu_get_machine_opts();
|
||||||
const char *cpu_model = machine->cpu_model;
|
const char *cpu_model = machine->cpu_model;
|
||||||
const char *kernel_filename = machine->kernel_filename;
|
const char *kernel_filename = qemu_opt_get(machine_opts, "kernel");
|
||||||
const char *kernel_cmdline = machine->kernel_cmdline;
|
const char *kernel_cmdline = qemu_opt_get(machine_opts, "append");
|
||||||
int n;
|
int n;
|
||||||
|
|
||||||
if (!cpu_model) {
|
if (!cpu_model) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue