diff options
author | Paul Brook <paul@codesourcery.com> | 2009-05-08 02:35:15 +0100 |
---|---|---|
committer | Paul Brook <paul@codesourcery.com> | 2009-05-08 02:35:15 +0100 |
commit | 2ac711791b2e4aabc5e4046b7428727828c705eb (patch) | |
tree | c4ed47028dee4949cc7eace9760a20d1759406e2 /hw/nand.c | |
parent | e612a1f7256bb3546cf3e9ae6cad3997c4153663 (diff) | |
download | qemu-2ac711791b2e4aabc5e4046b7428727828c705eb.zip qemu-2ac711791b2e4aabc5e4046b7428727828c705eb.tar.gz qemu-2ac711791b2e4aabc5e4046b7428727828c705eb.tar.bz2 |
Replace cpu_abort with hw_error
Signed-off-by: Paul Brook <paul@codesourcery.com>
Diffstat (limited to 'hw/nand.c')
-rw-r--r-- | hw/nand.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -445,8 +445,7 @@ struct nand_flash_s *nand_init(int manf_id, int chip_id) int index; if (nand_flash_ids[chip_id].size == 0) { - cpu_abort(cpu_single_env, "%s: Unsupported NAND chip ID.\n", - __FUNCTION__); + hw_error("%s: Unsupported NAND chip ID.\n", __FUNCTION__); } s = (struct nand_flash_s *) qemu_mallocz(sizeof(struct nand_flash_s)); @@ -475,8 +474,7 @@ struct nand_flash_s *nand_init(int manf_id, int chip_id) nand_init_2048(s); break; default: - cpu_abort(cpu_single_env, "%s: Unsupported NAND block size.\n", - __FUNCTION__); + hw_error("%s: Unsupported NAND block size.\n", __FUNCTION__); } pagesize = 1 << s->oob_shift; |