qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH for-1.6? 11/14] puv3: Don't assert kernel filename f


From: Andreas Färber
Subject: [Qemu-devel] [PATCH for-1.6? 11/14] puv3: Don't assert kernel filename for qtest
Date: Mon, 29 Jul 2013 19:15:38 +0200

Replacing the assert() with more user-friendly error handling is left
for another time.

Signed-off-by: Andreas Färber <address@hidden>
---
 hw/unicore32/puv3.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/hw/unicore32/puv3.c b/hw/unicore32/puv3.c
index 5ff0dc9..f99cf8e 100644
--- a/hw/unicore32/puv3.c
+++ b/hw/unicore32/puv3.c
@@ -17,6 +17,7 @@
 #include "hw/boards.h"
 #include "hw/loader.h"
 #include "hw/i386/pc.h"
+#include "sysemu/qtest.h"
 
 #undef DEBUG_PUV3
 #include "hw/unicore32/puv3.h"
@@ -84,6 +85,9 @@ static void puv3_load_kernel(const char *kernel_filename)
 {
     int size;
 
+    if (qtest_enabled()) {
+        return;
+    }
     assert(kernel_filename != NULL);
 
     /* only zImage format supported */
-- 
1.8.1.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]