Skip to content
Snippets Groups Projects
  1. Sep 27, 2022
  2. Feb 01, 2022
  3. Jan 11, 2022
  4. Jan 06, 2022
  5. Dec 20, 2021
  6. Jul 12, 2021
  7. Feb 13, 2021
  8. Jan 21, 2021
  9. Aug 27, 2020
    • Filip Bozuta's avatar
      linux-user: Add generic 'termbits.h' for some archs · fcb6fcf6
      Filip Bozuta authored
      
      This patch introduces a generic 'termbits.h' file for following
      archs: 'aarch64', 'arm', 'i386, 'm68k', 'microblaze', 'nios2',
      'openrisc', 'riscv', 's390x', 'x86_64'.
      
      Since all of these archs have the same termios flag values and
      same ioctl_tty numbers, there is no need for a separate 'termbits.h'
      file for each one of them. For that reason one generic 'termbits.h'
      file was added for all of them and an '#include' directive was
      added for this generic file in every arch 'termbits.h' file.
      
      Also, some of the flag values that were missing were added in this
      generic file so that it matches the generic 'termibts.h' and 'ioctls.h'
      files from the kernel: 'asm-generic/termbits.h' and 'asm-generic/ioctls.h'.
      
      Signed-off-by: default avatarFilip Bozuta <Filip.Bozuta@syrmia.com>
      Reviewed-by: default avatarLaurent Vivier <laurent@vivier.eu>
      Message-Id: <20200723210233.349690-2-Filip.Bozuta@syrmia.com>
      Signed-off-by: default avatarLaurent Vivier <laurent@vivier.eu>
      fcb6fcf6
  10. Jun 05, 2020
  11. Jul 02, 2019
    • Aleksandar Markovic's avatar
      linux-user: Introduce TARGET_HAVE_ARCH_STRUCT_FLOCK · 1272a6c4
      Aleksandar Markovic authored
      
      Bring target_flock definitions to be more in sync with the way
      flock is defined in kernel.
      
      Basically, the rules from the kernel are:
      
      1. Majority of architectures have a common flock definition.
      
      2. Architectures with 32-bit MIPS ABIs have a sligtly different
      flock definition; those architectures are the only arcitectures
      that have HAVE_ARCH_STRUCT_FLOCK defined, and that preprocessor
      constant is used in the common header as a flag for including or
      not including common flock definition.
      
      3. Sparc architectures also have a sligtly different flock
      definition, but the difference is only the padding at the end of
      the structure. The presence of that padding is determined by
      preprocessor constants __ARCH_FLOCK6_PAD and __ARCH_FLOCK64_PAD.
      
      QEMU linux-user already implements rules 1. and 3. in a very
      similar way as they are implemented in kernel. However, rule 2.
      is implemented in a dissimilar way (for example, the constant
      TARGET_HAVE_ARCH_STRUCT_FLOCK is missing), and this patch brings
      QEMU implementation much closer to the kernel implementation.
      TARGET_HAVE_ARCH_STRUCT_FLOCK64 constant is also introduced to
      mimic HAVE_ARCH_STRUCT_FLOCK64 from kernel, but it is not defined
      anywhere, however, this is the case with HAVE_ARCH_STRUCT_FLOCK64
      in kernel as well.
      
      Signed-off-by: default avatarAleksandar Markovic <amarkovic@wavecomp.com>
      Reviewed-by: default avatarLaurent Vivier <laurent@vivier.eu>
      Message-Id: <1561718618-20218-5-git-send-email-aleksandar.markovic@rt-rk.com>
      Signed-off-by: default avatarLaurent Vivier <laurent@vivier.eu>
      1272a6c4
    • Aleksandar Markovic's avatar
      linux-user: Fix target_flock structure for MIPS O64 ABI · bf913672
      Aleksandar Markovic authored
      
      Among MIPS ABIs, only MIPS O32 and N32 have special (different
      than other architectures) definition of structure flock in kernel.
      
      Bring target_flock definition in QEMU for MIPS O64 ABI to the
      correct state, which is currently different than the most common
      definition, and it should actually be the same.
      
      Reported-by: default avatarDragan Mladjenovic <dmladjenovic@wavecomp.com>
      Signed-off-by: default avatarAleksandar Markovic <amarkovic@wavecomp.com>
      Reviewed-by: default avatarLaurent Vivier <laurent@vivier.eu>
      Message-Id: <1561718618-20218-4-git-send-email-aleksandar.markovic@rt-rk.com>
      Signed-off-by: default avatarLaurent Vivier <laurent@vivier.eu>
      bf913672
  12. Jun 03, 2018
  13. May 25, 2018
Loading