KVM: ia64: fix zero extending for mmio ld1/2/4 emulation in KVM
authorJes Sorensen <jes@sgi.com>
Tue, 20 May 2008 11:13:50 +0000 (13:13 +0200)
committerAvi Kivity <avi@qumranet.com>
Fri, 6 Jun 2008 18:08:25 +0000 (21:08 +0300)
Only copy in the data actually requested by the instruction emulation
and zero pad the destination register first. This avoids the problem
where emulated mmio access got garbled data from ld2.acq instructions
in the vga console driver.

Signed-off-by: Jes Sorensen <jes@sgi.com>
Acked-by: Xiantao Zhang <xiantao.zhang@intel.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>

No differences found