diff options
author | Matheus Ferst | 2022-07-14 19:23:43 +0200 |
---|---|---|
committer | Daniel Henrique Barboza | 2022-07-18 18:59:43 +0200 |
commit | 3778aa970f21b475ca16befcf271078602104fe6 (patch) | |
tree | e4fadc5313d4d2b030495b12f9b05531e2fc34ee /python/qemu/qmp/legacy.py | |
parent | target/ppc: Implement slbiag (diff) | |
download | qemu-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