summary refs log tree commit diff stats
path: root/include/hw/loongarch/virt.h
diff options
context:
space:
mode:
authorSong Gao <gaosong@loongson.cn>2024-04-26 17:15:38 +0800
committerSong Gao <gaosong@loongson.cn>2024-04-29 10:25:56 +0800
commit58ee60d2d29437d1ddb02640a12a3f028307594c (patch)
tree81158d307e250dbe6138e4af8c5d71d5f8bdb864 /include/hw/loongarch/virt.h
parent7e0510d7600cd0c1c4742751b415f4f7df84328e (diff)
downloadfocaccia-qemu-58ee60d2d29437d1ddb02640a12a3f028307594c.tar.gz
focaccia-qemu-58ee60d2d29437d1ddb02640a12a3f028307594c.zip
hw/loongarch: Add init_cmdline
Add init_cmline and set boot_info->a0, a1

Signed-off-by: Song Gao <gaosong@loongson.cn>
Reviewed-by: Bibo Mao <maobibo@loongson.cn>
Message-Id: <20240426091551.2397867-5-gaosong@loongson.cn>
Diffstat (limited to 'include/hw/loongarch/virt.h')
-rw-r--r--include/hw/loongarch/virt.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/loongarch/virt.h b/include/hw/loongarch/virt.h
index cf2f2bfb19..d7a074d69f 100644
--- a/include/hw/loongarch/virt.h
+++ b/include/hw/loongarch/virt.h
@@ -33,6 +33,8 @@
 #define VIRT_GED_MEM_ADDR       (VIRT_GED_EVT_ADDR + ACPI_GED_EVT_SEL_LEN)
 #define VIRT_GED_REG_ADDR       (VIRT_GED_MEM_ADDR + MEMORY_HOTPLUG_IO_LEN)
 
+#define COMMAND_LINE_SIZE       512
+
 struct LoongArchMachineState {
     /*< private >*/
     MachineState parent_obj;