]> git.proxmox.com Git - qemu.git/blobdiff - hw/sh_serial.c
Replace assert(0) with abort() or cpu_abort()
[qemu.git] / hw / sh_serial.c
index 2447b919b8faa7a4f9b9532e56f1a1677463382f..93dc144a34e78f40386aeca7b45a5caec5517bb9 100644 (file)
@@ -182,7 +182,7 @@ static void sh_serial_ioport_write(void *opaque, uint32_t offs, uint32_t val)
     }
 
     fprintf(stderr, "sh_serial: unsupported write to 0x%02x\n", offs);
-    assert(0);
+    abort();
 }
 
 static uint32_t sh_serial_ioport_read(void *opaque, uint32_t offs)
@@ -282,7 +282,7 @@ static uint32_t sh_serial_ioport_read(void *opaque, uint32_t offs)
 
     if (ret & ~((1 << 16) - 1)) {
         fprintf(stderr, "sh_serial: unsupported read from 0x%02x\n", offs);
-       assert(0);
+        abort();
     }
 
     return ret;