On 13/9/24 19:26, Alex Bennée wrote:
From: Rowan Hart <rowanbhart(a)gmail.com>
Signed-off-by: Rowan Hart <rowanbhart(a)gmail.com>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier(a)linaro.org>
Tested-by: Pierrick Bouvier <pierrick.bouvier(a)linaro.org>
Message-Id: <20240827215329.248434-3-rowanbhart(a)gmail.com>
[AJB: tweak fmt string for vaddr]
Signed-off-by: Alex Bennée <alex.bennee(a)linaro.org>
---
vAJB
- tweak fmt string for PRIu64
---
docs/about/emulation.rst | 14 ++++-
tests/tcg/plugins/syscall.c | 117 ++++++++++++++++++++++++++++++++++++
2 files changed, 130 insertions(+), 1 deletion(-)
diff --git a/tests/tcg/plugins/syscall.c
b/tests/tcg/plugins/syscall.c
index 72e1a5bf90..647f478090 100644
--- a/tests/tcg/plugins/syscall.c
+++ b/tests/tcg/plugins/syscall.c
@@ -22,8 +22,57 @@ typedef struct {
int64_t errors;
} SyscallStats;
+struct SyscallInfo {
+ const char *name;
+ int64_t write_sysno;
+};
+
static
+const struct SyscallInfo arch_syscall_info[] = {
+ { "aarch64", 64 },
+ { "aarch64_be", 64 },
+ { "alpha", 4 },
+ { "arm", 4 },
+ { "armeb", 4 },
+ { "avr", -1 },
+ { "cris", -1 },
+ { "hexagon", 64 },
+ { "hppa", -1 },