diff options
author | 2023-03-28 19:31:16 +0200 | |
---|---|---|
committer | 2023-03-28 15:24:06 -0700 | |
commit | a0858608343d26e74da390a5795e2e83aabda2d4 (patch) | |
tree | 3968514591b79538f4909dcd7063383fb3aef1dd /scripts/coverage/compare_gcov_json.py | |
parent | softmmu: Restrict cpu_check_watchpoint / address_matches to TCG accel (diff) | |
download | qemu-a0858608343d26e74da390a5795e2e83aabda2d4.tar.xz qemu-a0858608343d26e74da390a5795e2e83aabda2d4.zip |
softmmu/watchpoint: Add missing 'qemu/error-report.h' include
cpu_watchpoint_insert() calls error_report() which is declared
in "qemu/error-report.h". When moving this code in commit 2609ec2868
("softmmu: Extract watchpoint API from physmem.c") we neglected to
include this header. This works so far because it is indirectly
included by TCG headers -> "qemu/plugin.h" -> "qemu/error-report.h".
Currently cpu_watchpoint_insert() is only built with the TCG
accelerator. When building it with other ones (or without TCG)
we get:
softmmu/watchpoint.c:38:9: error: implicit declaration of function 'error_report' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
error_report("tried to set invalid watchpoint at %"
^
Include "qemu/error-report.h" in order to fix this for non-TCG
builds.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230328173117.15226-3-philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'scripts/coverage/compare_gcov_json.py')
0 files changed, 0 insertions, 0 deletions