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:
parent
f2cb4026fc
commit
bb8dacedd5
@ -983,8 +983,9 @@ static inline bool
|
||||
sdhci_buff_access_is_sequential(SDHCIState *s, unsigned byte_num)
|
||||
{
|
||||
if ((s->data_count & 0x3) != byte_num) {
|
||||
trace_sdhci_error("Non-sequential access to Buffer Data Port register"
|
||||
"is prohibited\n");
|
||||
qemu_log_mask(LOG_GUEST_ERROR,
|
||||
"SDHCI: Non-sequential access to Buffer Data Port"
|
||||
" register is prohibited\n");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user