]> Git Repo - qemu.git/commit
hw/block/pflash_cfi01: Report correct size info for parallel configs
authorPeter Maydell <[email protected]>
Thu, 19 Jun 2014 17:06:25 +0000 (18:06 +0100)
committerPeter Maydell <[email protected]>
Thu, 19 Jun 2014 17:06:25 +0000 (18:06 +0100)
commita0289b8af3b05fe47bee8e434d1c978382a5a8cc
tree9b2904efa9fee5697120cbb9c6078f502b9ff3f3
parent476e75ab9d2cf2ad8ac8dfd9530c9fee148c2c7a
hw/block/pflash_cfi01: Report correct size info for parallel configs

If the flash device is configured with a device-width which is
not equal to the bank-width, indicating that it is actually several
narrow flash devices in parallel, the CFI table should report the
number of blocks and the size of a single device, not of the whole
combined setup. This stops Linux from complaining:
"NOR chip too large to fit in mapping. Attempting to cope..."

As usual, we retain the old broken but backwards compatible behaviour
when the device-width is not specified.

Reviewed-by: Peter Crosthwaite <[email protected]>
Signed-off-by: Peter Maydell <[email protected]>
Message-id: 1402409025[email protected]
hw/block/pflash_cfi01.c
This page took 0.025322 seconds and 4 git commands to generate.