]> Git Repo - qemu.git/commit - hw/sh_serial.c
Replace assert(0) with abort() or cpu_abort()
authorBlue Swirl <[email protected]>
Thu, 18 Mar 2010 18:41:57 +0000 (18:41 +0000)
committerBlue Swirl <[email protected]>
Thu, 18 Mar 2010 18:41:57 +0000 (18:41 +0000)
commit43dc2a645e00e6761a741e3d16c27c5b5a373b66
treedaf9f3fd9fa34306ac03fbb6efc72860efc879ca
parent609c1daced7f444f9f6569bba72d6a56a697ac95
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 <[email protected]>
13 files changed:
block/vvfat.c
hw/sh7750.c
hw/sh_intc.c
hw/sh_serial.c
hw/sm501.c
hw/tc58128.c
linux-user/signal.c
qdict.c
target-cris/helper.c
target-cris/translate_v10.c
target-sh4/README.sh4
target-sh4/helper.c
target-sh4/op_helper.c
This page took 0.029025 seconds and 4 git commands to generate.