1. 05 1月, 2011 1 次提交
    • A
      cirrus_vga: fix division by 0 for color expansion rop · 92d675d1
      Aurelien Jarno 提交于
      Commit d85d0d38 introduces a regression
      with Windows ME that leads to a division by 0 and a crash.
      
      It uses the color expansion rop with the source pitch set to 0. This is
      something allowed, as the manual explicitely says "When the source of
      color-expand data is display memory, the source pitch is ignored.".
      
      This patch fixes this regression by computing sx, sy and others
      variables only if they are going to be used later, that is for a plain
      copy ROP. It basically consists in moving code.
      Signed-off-by: NAurelien Jarno <aurelien@aurel32.net>
      92d675d1
  2. 11 12月, 2010 1 次提交
    • A
      Add endianness as io mem parameter · 2507c12a
      Alexander Graf 提交于
      As stated before, devices can be little, big or native endian. The
      target endianness is not of their concern, so we need to push things
      down a level.
      
      This patch adds a parameter to cpu_register_io_memory that allows a
      device to choose its endianness. For now, all devices simply choose
      native endian, because that's the same behavior as before.
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      2507c12a
  3. 22 11月, 2010 1 次提交
  4. 14 10月, 2010 1 次提交
    • B
      cirrus: avoid write only variables · 8c78881f
      Blue Swirl 提交于
      Compiling with GCC 4.6.0 20100925 produced a lot of warnings like:
      In file included from /src/qemu/hw/cirrus_vga_rop.h:174:0,
                       from /src/qemu/hw/cirrus_vga.c:284:
      /src/qemu/hw/cirrus_vga_rop2.h: In function 'cirrus_patternfill_0_8':
      /src/qemu/hw/cirrus_vga_rop2.h:48:18: error: variable 'col' set but not used [-Werror=unused-but-set-variable]
      /src/qemu/hw/cirrus_vga_rop2.h: In function 'cirrus_colorexpand_transp_0_8':
      /src/qemu/hw/cirrus_vga_rop2.h:104:18: error: variable 'col' set but not used [-Werror=unused-but-set-variable]
      
      Fix the warnings by introducing an inline function, which avoids
      exposing write-only variables.
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      8c78881f
  5. 06 7月, 2010 1 次提交
  6. 22 5月, 2010 1 次提交
  7. 29 1月, 2010 1 次提交
  8. 19 12月, 2009 2 次提交
  9. 12 12月, 2009 1 次提交
  10. 04 12月, 2009 3 次提交
  11. 09 11月, 2009 4 次提交
  12. 30 10月, 2009 1 次提交
  13. 05 10月, 2009 2 次提交
  14. 02 10月, 2009 2 次提交
  15. 12 9月, 2009 1 次提交
  16. 10 9月, 2009 14 次提交
  17. 28 8月, 2009 3 次提交