]> git.proxmox.com Git - mirror_qemu.git/commit
pflash_cfi01: duplicate status byte from bits 23:16 for 32bit reads
authorPaul Burton <paul.burton@imgtec.com>
Fri, 14 Jun 2013 07:30:48 +0000 (08:30 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Sun, 28 Jul 2013 17:59:23 +0000 (19:59 +0200)
commitea0a4f34418c9f2cad9722bb27acd6349148fac0
treefbdbd2d798041b199c75fc200c73645d3abba546
parent35c648078aa493c3b976840eb7cf2e53ab5b7a2d
pflash_cfi01: duplicate status byte from bits 23:16 for 32bit reads

The firmware commonly used with MIPS Malta boards (YAMON) reads the
status of the pflash with a 32bit memory access. On real hardware
this results in the status byte being mirrored in the upper 16 bits
of the read value. For example if the status byte is represented by
SS then the hardware reads 0x00SS00SS. The YAMON firmware compares the
status against 32bit values expecting the mirrored value and fails
without it.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Signed-off-by: Leon Alrae <leon.alrae@imgtec.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
hw/block/pflash_cfi01.c