diff options
| author | Xiaojuan Yang | 2022-07-12 10:32:01 +0200 |
|---|---|---|
| committer | Richard Henderson | 2022-07-19 19:25:10 +0200 |
| commit | 27ad7564e788103157114a3bd5a5355bd19eed72 (patch) | |
| tree | 2753c1b2a6f35c9e83bff6850f0c33742359f687 /include/hw/loongarch | |
| parent | tests/tcg/loongarch64: Add pcadd related instructions test (diff) | |
| download | qemu-27ad7564e788103157114a3bd5a5355bd19eed72.tar.gz qemu-27ad7564e788103157114a3bd5a5355bd19eed72.tar.xz qemu-27ad7564e788103157114a3bd5a5355bd19eed72.zip | |
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>
Diffstat (limited to 'include/hw/loongarch')
| -rw-r--r-- | include/hw/loongarch/virt.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/hw/loongarch/virt.h b/include/hw/loongarch/virt.h index 09a816191c..9fec1f8a5c 100644 --- a/include/hw/loongarch/virt.h +++ b/include/hw/loongarch/virt.h @@ -17,6 +17,7 @@ #define LOONGARCH_ISA_IO_BASE 0x18000000UL #define LOONGARCH_ISA_IO_SIZE 0x0004000 +#define VIRT_FWCFG_BASE 0x1e020000UL struct LoongArchMachineState { /*< private >*/ @@ -26,6 +27,8 @@ struct LoongArchMachineState { MemoryRegion lowmem; MemoryRegion highmem; MemoryRegion isa_io; + /* State for other subsystems/APIs: */ + FWCfgState *fw_cfg; }; #define TYPE_LOONGARCH_MACHINE MACHINE_TYPE_NAME("virt") |
