mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
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:
+3
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user