qemu-e2k/hw/tricore
zhanghailiang 8ef2b256b9 target-tricore: check return value before using it
We reference the return value of cpu before checking whether it is NULL,
The checking code is after that which violates code style.

It makes no difference if the cpu is NULL, qemu process will terminate.
But one will be 'Segmentation fault' and the other will report a error
which is what we want.

Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
Reviewed-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2014-11-02 10:04:34 +03:00
..
Makefile.objs target-tricore: Add board for systemmode 2014-09-01 14:49:20 +01:00
tricore_testboard.c target-tricore: check return value before using it 2014-11-02 10:04:34 +03:00