mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 10:34:58 -06:00
hw/loongarch: Add fw_cfg table support
Add fw_cfg table for loongarch virt machine, including memmap table. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Xiaojuan Yang <yangxiaojuan@loongson.cn> Message-Id: <20220712083206.4187715-2-yangxiaojuan@loongson.cn> [rth: Replace fprintf with assert; drop unused return value; initialize reserved slot to zero.] Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
0c7213dd66
commit
27ad7564e7
5 changed files with 94 additions and 1 deletions
15
hw/loongarch/fw_cfg.h
Normal file
15
hw/loongarch/fw_cfg.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
||||
/*
|
||||
* QEMU fw_cfg helpers (LoongArch specific)
|
||||
*
|
||||
* Copyright (C) 2021 Loongson Technology Corporation Limited
|
||||
*/
|
||||
|
||||
#ifndef HW_LOONGARCH_FW_CFG_H
|
||||
#define HW_LOONGARCH_FW_CFG_H
|
||||
|
||||
#include "hw/boards.h"
|
||||
#include "hw/nvram/fw_cfg.h"
|
||||
|
||||
FWCfgState *loongarch_fw_cfg_init(ram_addr_t ram_size, MachineState *ms);
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue