summaryrefslogtreecommitdiffstats
path: root/python/qemu/qmp/legacy.py
diff options
context:
space:
mode:
authorMatheus Ferst2022-07-14 19:23:43 +0200
committerDaniel Henrique Barboza2022-07-18 18:59:43 +0200
commit3778aa970f21b475ca16befcf271078602104fe6 (patch)
treee4fadc5313d4d2b030495b12f9b05531e2fc34ee /python/qemu/qmp/legacy.py
parenttarget/ppc: Implement slbiag (diff)
downloadqemu-3778aa970f21b475ca16befcf271078602104fe6.tar.gz
qemu-3778aa970f21b475ca16befcf271078602104fe6.tar.xz
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 'python/qemu/qmp/legacy.py')
0 files changed, 0 insertions, 0 deletions