]> Git Repo - qemu.git/commitdiff
hw/net/stellaris_enet: Use qemu_log_mask(GUEST_ERROR) instead of hw_error
authorPhilippe Mathieu-Daudé <[email protected]>
Tue, 26 Jun 2018 16:50:41 +0000 (17:50 +0100)
committerPeter Maydell <[email protected]>
Tue, 26 Jun 2018 16:50:41 +0000 (17:50 +0100)
hw_error() finally calls abort(), but there is no need to abort here.

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Message-id: 20180624040609[email protected]
Reviewed-by: Peter Maydell <[email protected]>
Signed-off-by: Peter Maydell <[email protected]>
hw/net/stellaris_enet.c

index 1e7329517cf419f93cc0b531102914e36b8a3e8f..165562d7886aadcee979cee959f2c45cd3521e62 100644 (file)
@@ -9,6 +9,7 @@
 #include "qemu/osdep.h"
 #include "hw/sysbus.h"
 #include "net/net.h"
+#include "qemu/log.h"
 #include <zlib.h>
 
 //#define DEBUG_STELLARIS_ENET 1
@@ -343,7 +344,9 @@ static uint64_t stellaris_enet_read(void *opaque, hwaddr offset,
     case 0x3c: /* Undocumented: Timestamp? */
         return 0;
     default:
-        hw_error("stellaris_enet_read: Bad offset %x\n", (int)offset);
+        qemu_log_mask(LOG_GUEST_ERROR, "stellaris_enet_rd%d: Illegal register"
+                                       " 0x02%" HWADDR_PRIx "\n",
+                      size * 8, offset);
         return 0;
     }
 }
@@ -442,7 +445,9 @@ static void stellaris_enet_write(void *opaque, hwaddr offset,
         /* Ignored.  */
         break;
     default:
-        hw_error("stellaris_enet_write: Bad offset %x\n", (int)offset);
+        qemu_log_mask(LOG_GUEST_ERROR, "stellaris_enet_wr%d: Illegal register "
+                                       "0x02%" HWADDR_PRIx " = 0x%" PRIx64 "\n",
+                      size * 8, offset, value);
     }
 }
 
This page took 0.028976 seconds and 4 git commands to generate.