On 29/10/24 22:23, Song Gao wrote:
When we run “qemu-system-loongarch64 -qmp stdio -vnc none -S”,
we get an error message “Need kernel filename” and then we can't use qmp cmd to 
query some information.
So, we just throw a warning and then the cpus starts running from address 
VIRT_FLASH0_BASE.

Signed-off-by: Song Gao <[email protected]>
---
  hw/loongarch/boot.c | 5 ++---
  1 file changed, 2 insertions(+), 3 deletions(-)


@@ -286,8 +286,7 @@ static void loongarch_direct_kernel_boot(struct 
loongarch_boot_info *info)
          kernel_addr = load_kernel_info(info);
      } else {
          if(!qtest_enabled()) {
-            error_report("Need kernel filename\n");
-            exit(1);
+            warn_report("No kernel provided, booting from flash drive. \n");

Stripping trailing " \n",

Reviewed-by: Philippe Mathieu-Daudé <[email protected]>

          }
      }


Reply via email to