diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2010-03-18 18:41:57 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-03-18 18:41:57 +0000 |
commit | 43dc2a645e00e6761a741e3d16c27c5b5a373b66 (patch) | |
tree | daf9f3fd9fa34306ac03fbb6efc72860efc879ca /target-sh4/op_helper.c | |
parent | 609c1daced7f444f9f6569bba72d6a56a697ac95 (diff) |
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-sh4/op_helper.c')
-rw-r--r-- | target-sh4/op_helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-sh4/op_helper.c b/target-sh4/op_helper.c index 529df0ca9e..2e5f5552a2 100644 --- a/target-sh4/op_helper.c +++ b/target-sh4/op_helper.c @@ -71,7 +71,7 @@ void helper_ldtlb(void) { #ifdef CONFIG_USER_ONLY /* XXXXX */ - assert(0); + cpu_abort(env, "Unhandled ldtlb"); #else cpu_load_tlb(env); #endif |