]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
target/arm/hvf: Add trace.h header
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 19 Nov 2024 13:02:08 +0000 (13:02 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 19 Nov 2024 14:14:13 +0000 (14:14 +0000)
The documentation for trace events says that every subdirectory which
has trace events should have a trace.h header, whose only content is
an include of the trace/trace-<subdir>.h file.

When we added the trace events in target/arm/hvf/ we forgot to create
this file and instead hvf.c directly includes
trace/trace-target_arm_hvf.h.

Create the standard trace.h file to bring this into line with the
convention.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-id: 20241108162909.4080314-3-peter.maydell@linaro.org

target/arm/hvf/hvf.c
target/arm/hvf/trace.h [new file with mode: 0644]

index 6cea483d422914a948a2050c4312d3b4a4b720c8..ca7ea92774a46a53a9d5554accbcdf9bf5952570 100644 (file)
@@ -31,7 +31,7 @@
 #include "target/arm/internals.h"
 #include "target/arm/multiprocessing.h"
 #include "target/arm/gtimer.h"
-#include "trace/trace-target_arm_hvf.h"
+#include "trace.h"
 #include "migration/vmstate.h"
 
 #include "gdbstub/enums.h"
diff --git a/target/arm/hvf/trace.h b/target/arm/hvf/trace.h
new file mode 100644 (file)
index 0000000..04a19c1
--- /dev/null
@@ -0,0 +1 @@
+#include "trace/trace-target_arm_hvf.h"