qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] b44264: fsdev/9p-iov-marshal.c: Don't use cpu


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] b44264: fsdev/9p-iov-marshal.c: Don't use cpu_to_*w() func...
Date: Tue, 12 Jul 2016 08:30:04 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: b442642da145cb10293f577f3b43bda8beeb31cf
      
https://github.com/qemu/qemu/commit/b442642da145cb10293f577f3b43bda8beeb31cf
  Author: Peter Maydell <address@hidden>
  Date:   2016-07-12 (Tue, 12 Jul 2016)

  Changed paths:
    M fsdev/9p-iov-marshal.c

  Log Message:
  -----------
  fsdev/9p-iov-marshal.c: Don't use cpu_to_*w() functions

Don't use the cpu_to_*w() functions, which we are trying to deprecate.
Instead just use cpu_to_*() to do the byteswap, which brings the
code in the marshal function in line with that in the unmarshal.

Signed-off-by: Peter Maydell <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
Message-id: address@hidden


  Commit: 43120576cb6a9db070fd300da69fe61f5e5cc281
      
https://github.com/qemu/qemu/commit/43120576cb6a9db070fd300da69fe61f5e5cc281
  Author: Peter Maydell <address@hidden>
  Date:   2016-07-12 (Tue, 12 Jul 2016)

  Changed paths:
    M hw/bt/hci.c
    M hw/bt/l2cap.c

  Log Message:
  -----------
  hw/bt: Don't use cpu_to_*w() and *_to_cpup()

Don't use cpu_to_*w() and *_to_cpup() to do byte-swapped loads
and stores; instead use ld*_p() and st*_p() which correctly handle
misaligned accesses.

Bring the HNDL() macro into line with how we deal with
PARAMHANDLE(), by using cpu_to_le16() rather than an ifdef
HOST_WORDS_BIGENDIAN.

Signed-off-by: Peter Maydell <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
Message-id: address@hidden


  Commit: f76bde702916d0230bf359d478bcac8d7f3b30ae
      
https://github.com/qemu/qemu/commit/f76bde702916d0230bf359d478bcac8d7f3b30ae
  Author: Peter Maydell <address@hidden>
  Date:   2016-07-12 (Tue, 12 Jul 2016)

  Changed paths:
    M include/qemu/bswap.h

  Log Message:
  -----------
  bswap.h: Remove unused cpu_to_*w() and *_to_cpup()

Now that all uses of cpu_to_*w() and *_to_cpup() have been replaced
with either ld*_p()/st*_p() or by doing direct dereferences and
using the cpu_to_*()/*_to_cpu() byteswap functions, we can remove
the unused implementations.

Signed-off-by: Peter Maydell <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
Message-id: address@hidden


  Commit: cbe967f41d60e387368ef597a90d544e7d368ddd
      
https://github.com/qemu/qemu/commit/cbe967f41d60e387368ef597a90d544e7d368ddd
  Author: Peter Maydell <address@hidden>
  Date:   2016-07-12 (Tue, 12 Jul 2016)

  Changed paths:
    M include/qemu/bswap.h

  Log Message:
  -----------
  bswap.h: Fix comment typo

Fix a typo in a comment.

Signed-off-by: Peter Maydell <address@hidden>
Reviewed-by: Stefan Weil <address@hidden>
Message-id: address@hidden


  Commit: 7d820b766a2049f33ca7e078aa51018f2335f8c5
      
https://github.com/qemu/qemu/commit/7d820b766a2049f33ca7e078aa51018f2335f8c5
  Author: Peter Maydell <address@hidden>
  Date:   2016-07-12 (Tue, 12 Jul 2016)

  Changed paths:
    M include/qemu/bswap.h

  Log Message:
  -----------
  bswap.h: Document cpu_to_* and *_to_cpu conversion functions

Add a documentation comment describing the functions for
converting between the cpu and little or bigendian formats.

Signed-off-by: Peter Maydell <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
Message-id: address@hidden


Compare: https://github.com/qemu/qemu/compare/b35399bb4e99...7d820b766a20

reply via email to

[Prev in Thread] Current Thread [Next in Thread]