Skip to content
Snippets Groups Projects
  1. Mar 07, 2023
    • Alex Bennée's avatar
      gdbstub: move syscall handling to new file · c566080c
      Alex Bennée authored
      
      Our GDB syscall support is the last chunk of code that needs target
      specific support so move it to a new file. We take the opportunity to
      move the syscall state into its own singleton instance and add in a
      few helpers for the main gdbstub to interact with the module.
      
      I also moved the gdb_exit() declaration into syscalls.h as it feels
      pretty related and most of the callers of it treat it as such.
      
      Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      Signed-off-by: default avatarAlex Bennée <alex.bennee@linaro.org>
      
      Message-Id: <20230302190846.2593720-22-alex.bennee@linaro.org>
      Message-Id: <20230303025805.625589-22-richard.henderson@linaro.org>
      c566080c
    • Alex Bennée's avatar
      gdbstub: move chunks of user code into own files · d96bf49b
      Alex Bennée authored
      
      The process was pretty similar to the softmmu move except we take the
      time to split stuff between user.c and user-target.c to avoid as much
      target specific compilation as possible. We also start to make use of
      our shiny new header scheme so the user-only helpers can be included
      without the rest of the exec/gsbstub.h cruft.
      
      As before we split some functions into user and softmmu versions
      
      Reviewed-by: default avatarFabiano Rosas <farosas@suse.de>
      Signed-off-by: default avatarAlex Bennée <alex.bennee@linaro.org>
      
      Message-Id: <20230302190846.2593720-12-alex.bennee@linaro.org>
      Message-Id: <20230303025805.625589-12-richard.henderson@linaro.org>
      d96bf49b
  2. Mar 01, 2023
  3. Feb 17, 2023
    • Emanuele Giuseppe Esposito's avatar
      bsd-user/mmap: use TSA_NO_TSA to suppress clang TSA warnings in FreeBSD · e022d9ca
      Emanuele Giuseppe Esposito authored
      
      FreeBSD implements pthread headers using TSA (thread safety analysis)
      annotations, therefore when an application is compiled with
      -Wthread-safety there are some locking/annotation requirements that the
      user of the pthread API has to follow.
      
      This will also be the case in QEMU, since bsd-user/mmap.c uses the
      pthread API. Therefore when building it with -Wthread-safety the
      compiler will throw warnings because the functions are not properly
      annotated. We need TSA to be enabled because it ensures that the
      critical sections of an annotated variable are properly locked.
      
      In order to make the compiler happy and avoid adding all the necessary
      macros to all callers (lock functions should use TSA_ACQUIRE, while
      unlock TSA_RELEASE, and this applies to all users of pthread_mutex_lock
      and pthread_mutex_unlock), simply use TSA_NO_TSA to supppress such
      warnings.
      
      Signed-off-by: default avatarEmanuele Giuseppe Esposito <eesposit@redhat.com>
      Message-Id: <20230117135203.3049709-3-eesposit@redhat.com>
      Reviewed-by: default avatarWarner Losh <imp@bsdimp.com>
      Reviewed-by: default avatarKevin Wolf <kwolf@redhat.com>
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
      e022d9ca
  4. Feb 08, 2023
  5. Dec 14, 2022
  6. Oct 26, 2022
  7. Jul 02, 2022
  8. Jun 14, 2022
  9. Jun 13, 2022
  10. Jun 11, 2022
Loading