qemu-e2k/hw/loongarch
Tianrui Zhao 51d54503e8
hw/loongarch/virt: Fix virt_to_phys_addr function
The virt addr should mask TARGET_PHYS_ADDR_SPACE_BITS to
get the phys addr, and this is used by loading kernel elf.

Signed-off-by: Tianrui Zhao <zhaotianrui@loongson.cn>
Acked-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230327112313.3042829-1-zhaotianrui@loongson.cn>
Signed-off-by: Song Gao <gaosong@loongson.cn>
2023-04-04 19:29:13 +08:00
..
acpi-build.c *: Add missing includes of qemu/error-report.h 2023-03-22 15:06:57 +00:00
fw_cfg.c hw/loongarch: Support fw_cfg dma function 2022-09-19 20:01:40 +08:00
fw_cfg.h hw/loongarch: Add fw_cfg table support 2022-07-19 22:55:10 +05:30
Kconfig hw/loongarch/virt: Add cfi01 pflash device 2022-12-15 15:46:12 +08:00
meson.build hw/loongarch: Rename file 'loongson3.XXX' to 'virt.XXX' 2022-07-29 15:07:55 -07:00
virt.c hw/loongarch/virt: Fix virt_to_phys_addr function 2023-04-04 19:29:13 +08:00