diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2023-03-02 18:58:04 -0800 |
---|---|---|
committer | Alex Bennée <alex.bennee@linaro.org> | 2023-03-07 20:44:09 +0000 |
commit | 2d3d2517cc78763cc31da053a29786c53ccd90a2 (patch) | |
tree | 3eb79e8c39a6659507a7dfa7978b183ae94b5fcb /gdbstub | |
parent | ad66b5cbbb9a4f92e2a4f0af5902524bbd60ee67 (diff) |
gdbstub: Build syscall.c once
There is no longer anything target specific.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20230303025805.625589-29-richard.henderson@linaro.org>
Diffstat (limited to 'gdbstub')
-rw-r--r-- | gdbstub/meson.build | 3 | ||||
-rw-r--r-- | gdbstub/syscalls.c | 5 |
2 files changed, 2 insertions, 6 deletions
diff --git a/gdbstub/meson.build b/gdbstub/meson.build index d679c7ab86..bd5c5cd67d 100644 --- a/gdbstub/meson.build +++ b/gdbstub/meson.build @@ -31,8 +31,7 @@ user_ss.add(gdb_user) gdb_softmmu = declare_dependency(link_whole: libgdb_softmmu) softmmu_ss.add(gdb_softmmu) -# These have to built to the target ABI -specific_ss.add(files('syscalls.c')) +common_ss.add(files('syscalls.c')) # The user-target is specialised by the guest specific_ss.add(when: 'CONFIG_USER_ONLY', if_true: files('user-target.c')) diff --git a/gdbstub/syscalls.c b/gdbstub/syscalls.c index 9f479010b1..02e3a8f74c 100644 --- a/gdbstub/syscalls.c +++ b/gdbstub/syscalls.c @@ -2,9 +2,7 @@ * GDB Syscall Handling * * GDB can execute syscalls on the guests behalf, currently used by - * the various semihosting extensions. As this interfaces with a guest - * ABI we need to build it per-guest (although in reality its a 32 or - * 64 bit target_ulong that is the only difference). + * the various semihosting extensions. * * Copyright (c) 2003-2005 Fabrice Bellard * Copyright (c) 2023 Linaro Ltd @@ -14,7 +12,6 @@ #include "qemu/osdep.h" #include "qemu/error-report.h" -#include "cpu.h" #include "semihosting/semihost.h" #include "sysemu/runstate.h" #include "gdbstub/user.h" |