]> git.proxmox.com Git - qemu.git/commit
hw/scsi/lsi53c895a: Use deposit32 rather than handcoded shift/mask
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 23 Aug 2013 16:16:33 +0000 (17:16 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 12 Sep 2013 06:46:21 +0000 (08:46 +0200)
commit57ffcc4c83331cb4b2639a866b6ecc11b3e7092c
tree4d75374bf316d50a2de9661348e1c1b397e07b7a
parent927941059b95c3cc6264241115a23b1d14f1beb0
hw/scsi/lsi53c895a: Use deposit32 rather than handcoded shift/mask

Use deposit32() rather than handcoded shifts/masks to update the
scratch registers. This is cleaner and incidentally avoids a clang
sanitizer complaint ("runtime error: left shift of 255 by 24 places
cannot be represented in type 'int'").

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/scsi/lsi53c895a.c