aboutsummaryrefslogtreecommitdiff
path: root/hw/arm/smmuv3.c
diff options
context:
space:
mode:
authorEric Auger <eric.auger@redhat.com>2019-08-22 19:23:49 +0200
committerPeter Maydell <peter.maydell@linaro.org>2019-09-03 16:20:34 +0100
commit51b6d3681f66ada7c3bac331846ef009c3eafeb8 (patch)
treeafb68141e8c4b7020fb08ab550c400670324417c /hw/arm/smmuv3.c
parent8ccb56384940651c251b414216b260f33bcae7ae (diff)
downloadqemu-51b6d3681f66ada7c3bac331846ef009c3eafeb8.zip
qemu-51b6d3681f66ada7c3bac331846ef009c3eafeb8.tar.gz
qemu-51b6d3681f66ada7c3bac331846ef009c3eafeb8.tar.bz2
hw/arm/smmuv3: Log a guest error when decoding an invalid STE
Log a guest error when encountering an invalid STE. Signed-off-by: Eric Auger <eric.auger@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-id: 20190822172350.12008-5-eric.auger@redhat.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/arm/smmuv3.c')
-rw-r--r--hw/arm/smmuv3.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/arm/smmuv3.c b/hw/arm/smmuv3.c
index 2eaf07f..31ac4b1 100644
--- a/hw/arm/smmuv3.c
+++ b/hw/arm/smmuv3.c
@@ -320,6 +320,7 @@ static int decode_ste(SMMUv3State *s, SMMUTransCfg *cfg,
uint32_t config;
if (!STE_VALID(ste)) {
+ qemu_log_mask(LOG_GUEST_ERROR, "invalid STE\n");
goto bad_ste;
}