mirror of
https://github.com/mii443/qemu.git
synced 2025-12-03 11:08:25 +00:00
vl: make qemu_get_machine_opts static
Machine options can be retrieved as properties of the machine object. Encourage that by removing the "easy" accessor to machine options. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
@@ -100,14 +100,12 @@ static void create_fdt(SiFiveUState *s, const struct MemmapEntry *memmap,
|
||||
int cpu;
|
||||
uint32_t *cells;
|
||||
char *nodename;
|
||||
const char *dtb_filename;
|
||||
char ethclk_names[] = "pclk\0hclk";
|
||||
uint32_t plic_phandle, prci_phandle, gpio_phandle, phandle = 1;
|
||||
uint32_t hfclk_phandle, rtcclk_phandle, phy_phandle;
|
||||
|
||||
dtb_filename = qemu_opt_get(qemu_get_machine_opts(), "dtb");
|
||||
if (dtb_filename) {
|
||||
fdt = s->fdt = load_device_tree(dtb_filename, &s->fdt_size);
|
||||
if (ms->dtb) {
|
||||
fdt = s->fdt = load_device_tree(ms->dtb, &s->fdt_size);
|
||||
if (!fdt) {
|
||||
error_report("load_device_tree() failed");
|
||||
exit(1);
|
||||
|
||||
Reference in New Issue
Block a user