diff options
| author | Matheus Ferst <matheus.ferst@eldorado.org.br> | 2022-07-14 14:23:43 -0300 |
|---|---|---|
| committer | Daniel Henrique Barboza <danielhb413@gmail.com> | 2022-07-18 13:59:43 -0300 |
| commit | 3778aa970f21b475ca16befcf271078602104fe6 (patch) | |
| tree | e4fadc5313d4d2b030495b12f9b05531e2fc34ee /include/qemu/qemu-progress.h | |
| parent | 491a25535c99b838772ff961a39762333f0e852f (diff) | |
| download | focaccia-qemu-3778aa970f21b475ca16befcf271078602104fe6.tar.gz focaccia-qemu-3778aa970f21b475ca16befcf271078602104fe6.zip | |
target/ppc: check tb_env != 0 before printing TBU/TBL/DECR
When using "-machine none", env->tb_env is not allocated, causing the segmentation fault reported in issue #85 (launchpad bug #811683). To avoid this problem, check if the pointer != NULL before calling the methods to print TBU/TBL/DECR. Resolves: https://gitlab.com/qemu-project/qemu/-/issues/85 Signed-off-by: Matheus Ferst <matheus.ferst@eldorado.org.br> Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com> Message-Id: <20220714172343.80539-1-matheus.ferst@eldorado.org.br> Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Diffstat (limited to 'include/qemu/qemu-progress.h')
0 files changed, 0 insertions, 0 deletions