hw/sd/sdhci: Log non-sequencial access as GUEST_ERROR

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Tested-by: Andrew Jeffery <andrew@codeconstruct.com.au>
Message-Id: <20240702140842.54242-3-philmd@linaro.org>
This commit is contained in:
Philippe Mathieu-Daudé 2024-07-02 14:28:30 +02:00
parent f2cb4026fc
commit bb8dacedd5

View File

@ -983,8 +983,9 @@ static inline bool
sdhci_buff_access_is_sequential(SDHCIState *s, unsigned byte_num) sdhci_buff_access_is_sequential(SDHCIState *s, unsigned byte_num)
{ {
if ((s->data_count & 0x3) != byte_num) { if ((s->data_count & 0x3) != byte_num) {
trace_sdhci_error("Non-sequential access to Buffer Data Port register" qemu_log_mask(LOG_GUEST_ERROR,
"is prohibited\n"); "SDHCI: Non-sequential access to Buffer Data Port"
" register is prohibited\n");
return false; return false;
} }
return true; return true;