summary refs log tree commit diff stats
path: root/util/log.c
diff options
context:
space:
mode:
authorBALATON Zoltan <balaton@eik.bme.hu>2024-11-02 13:17:35 +0100
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2024-12-20 17:44:55 +0100
commit678bf8f22a2cbbaea465d1ce181e4367cb9760ae (patch)
treeccd3ae984d4f4643de2423785907943a4525a5f2 /util/log.c
parenta7e7066b9359f21b80b1ee08e9496c05aa1e618f (diff)
downloadfocaccia-qemu-678bf8f22a2cbbaea465d1ce181e4367cb9760ae.tar.gz
focaccia-qemu-678bf8f22a2cbbaea465d1ce181e4367cb9760ae.zip
log: Add separate debug option for logging invalid memory accesses
Currently -d guest_errors enables logging of different invalid actions
by the guest such as misusing hardware, accessing missing features or
invalid memory areas. The memory access logging can be quite verbose
which obscures the other messages enabled by this debug switch so
separate it by adding a new -d invalid_mem option to make it possible
to control it independently of other guest error logs.

Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-ID: <1bb0d0e91ba14aca13056df3b0a774f89cbf966c.1730549443.git.balaton@eik.bme.hu>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Diffstat (limited to 'util/log.c')
-rw-r--r--util/log.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/util/log.c b/util/log.c
index 6219819855..b87d399e4c 100644
--- a/util/log.c
+++ b/util/log.c
@@ -503,6 +503,8 @@ const QEMULogItem qemu_log_items[] = {
       "open a separate log file per thread; filename must contain '%d'" },
     { CPU_LOG_TB_VPU, "vpu",
       "include VPU registers in the 'cpu' logging" },
+    { LOG_INVALID_MEM, "invalid_mem",
+      "log invalid memory accesses" },
     { 0, NULL, NULL },
 };