hw/loongarch: Add fw_cfg table support
commit27ad7564e788103157114a3bd5a5355bd19eed72
authorXiaojuan Yang <yangxiaojuan@loongson.cn>
Tue, 12 Jul 2022 08:32:01 +0000 (12 16:32 +0800)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 19 Jul 2022 17:25:10 +0000 (19 22:55 +0530)
tree2753c1b2a6f35c9e83bff6850f0c33742359f687
parent0c7213dd668215d00aa56002f7a0193284b6c1a2
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>
hw/loongarch/fw_cfg.c [new file with mode: 0644]
hw/loongarch/fw_cfg.h [new file with mode: 0644]
hw/loongarch/loongson3.c
hw/loongarch/meson.build
include/hw/loongarch/virt.h