1. 15 1月, 2011 14 次提交
  2. 14 1月, 2011 1 次提交
  3. 13 1月, 2011 9 次提交
  4. 12 1月, 2011 8 次提交
  5. 11 1月, 2011 4 次提交
  6. 10 1月, 2011 4 次提交
    • A
      slirp: fix unaligned access in bootp code · 8aaf42ed
      Aurelien Jarno 提交于
      Slirp code tries to be smart an avoid data copy by using pointer to
      the data. This solution leads to unaligned access, in this case
      preq_addr, which is a 32-bit long structure. There is no real point
      of avoiding data copy in a such case, as the value itself is smaller
      or the same size as a pointer.
      
      The patch replaces pointers to the preq_addr structure by the strcture
      itself, and use the address 0.0.0.0 if no address has been requested
      (this is not a valid address in such a request). It compares it with
      htonl(0L) for correctness reasons, in case a code checker look for such
      mistakes. It also uses memcpy() for copying the data, which takes care
      of alignement issues.
      
      This fixes an unaligned access on IA64 host while requesting a DHCP
      address.
      Signed-off-by: NAurelien Jarno <aurelien@aurel32.net>
      8aaf42ed
    • A
      bswap.h: add cpu_to_be64wu() · 102c2976
      Aurelien Jarno 提交于
      Signed-off-by: NAurelien Jarno <aurelien@aurel32.net>
      102c2976
    • A
      tcg/arm: improve constant loading · 0f11f25a
      Aurelien Jarno 提交于
      Improve constant loading in two ways:
      - On all ARM versions, it's possible to load 0xffffff00 = -0x100 using
        the mvn rd, #0. Fix the conditions.
      - On <= ARMv6 versions, where movw and movt are not available, load the
        constants using mov and orr with rotations depending on the constant
        to load. This is very useful for example to load constants where the
        low byte is 0. This reduce the generated code size by about 7%.
      
      Also fix the coding style at the same time.
      
      Cc: Andrzej Zaborowski <balrog@zabor.org>
      Signed-off-by: NAurelien Jarno <aurelien@aurel32.net>
      0f11f25a
    • A
      tcg/ia64: remove an unnecessary stop bit · a3e28aa5
      Aurelien Jarno 提交于
      Spotted by Richard Henderson.
      Signed-off-by: NAurelien Jarno <aurelien@aurel32.net>
      a3e28aa5