summaryrefslogtreecommitdiff
path: root/target-cris/helper.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2010-03-18 18:41:57 +0000
committerBlue Swirl <blauwirbel@gmail.com>2010-03-18 18:41:57 +0000
commit43dc2a645e00e6761a741e3d16c27c5b5a373b66 (patch)
treedaf9f3fd9fa34306ac03fbb6efc72860efc879ca /target-cris/helper.c
parent609c1daced7f444f9f6569bba72d6a56a697ac95 (diff)
downloadqemu-43dc2a645e00e6761a741e3d16c27c5b5a373b66.tar.gz
qemu-43dc2a645e00e6761a741e3d16c27c5b5a373b66.tar.bz2
qemu-43dc2a645e00e6761a741e3d16c27c5b5a373b66.zip
Replace assert(0) with abort() or cpu_abort()
When building with -DNDEBUG, assert(0) will not stop execution so it must not be used for abnormal termination. Use cpu_abort() when in CPU context, abort() otherwise. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'target-cris/helper.c')
-rw-r--r--target-cris/helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-cris/helper.c b/target-cris/helper.c
index fcdcf977fe..240bda056a 100644
--- a/target-cris/helper.c
+++ b/target-cris/helper.c
@@ -138,7 +138,7 @@ static void do_interruptv10(CPUState *env)
break;
case EXCP_BUSFAULT:
- assert(0);
+ cpu_abort(env, "Unhandled busfault");
break;
default: