On 4/9/26 17:57, Bin Meng wrote:
SDHC and SDXC memory commands always transfer 512-byte blocks regardless
of the length selected by CMD16. QEMU stores that selected length for
LOCK_UNLOCK but also used it directly for several memory command paths.

Route single- and multi-block memory sizing through the existing helper
that distinguishes high-capacity cards from SDSC.

This lets PolarFire SoC HSS validate the complete GPT header and locate
its boot partition instead of receiving only the eight-byte signature.

Fixes: 2d7adea4fe57 ("hw/sd: Support SDHC size cards")
Cc: [email protected]
Signed-off-by: Bin Meng <[email protected]>
---

(no changes since v1)

  hw/sd/sd.c | 43 +++++++++++++++++++++++++------------------
  1 file changed, 25 insertions(+), 18 deletions(-)

Wow, old one.

Reviewed-by: Philippe Mathieu-Daudé <[email protected]>

Reply via email to