Replace cpu_abort with hw_error
Signed-off-by: Paul Brook <paul@codesourcery.com>
diff --git a/hw/pl022.c b/hw/pl022.c
index 90f4f0f..3027bcf 100644
--- a/hw/pl022.c
+++ b/hw/pl022.c
@@ -168,8 +168,7 @@
/* Not implemented. */
return 0;
default:
- cpu_abort (cpu_single_env, "pl022_read: Bad offset %x\n",
- (int)offset);
+ hw_error("pl022_read: Bad offset %x\n", (int)offset);
return 0;
}
}
@@ -211,12 +210,12 @@
pl022_update(s);
break;
case 0x20: /* DMACR */
- if (value)
- cpu_abort (cpu_single_env, "pl022: DMA not implemented\n");
+ if (value) {
+ hw_error("pl022: DMA not implemented\n");
+ }
break;
default:
- cpu_abort (cpu_single_env, "pl022_write: Bad offset %x\n",
- (int)offset);
+ hw_error("pl022_write: Bad offset %x\n", (int)offset);
}
}