qemu-arm
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v11 02/11] hw/fsi: Introduce IBM's scratchpad device


From: Ninad Palsule
Subject: Re: [PATCH v11 02/11] hw/fsi: Introduce IBM's scratchpad device
Date: Fri, 26 Jan 2024 03:54:15 -0600
User-agent: Mozilla Thunderbird

Hello Cedric,


  +static uint64_t fsi_scratchpad_read(void *opaque, hwaddr addr, unsigned size)
+{
+    FSIScratchPad *s = SCRATCHPAD(opaque);
+    int reg = TO_REG(addr);
+
+    trace_fsi_scratchpad_read(addr, size);
+
+    if (reg >= FSI_SCRATCHPAD_NR_REGS) {

usually, the model logs a GUEST_ERROR in such case, specially when the MMIO
window is larger than the register set. Same comment for the write memop.

with that,

Reviewed-by: Cédric Le Goater <clg@kaod.org>

Added error log. Added tag.

Thanks for the review.

Regards,

Ninad




reply via email to

[Prev in Thread] Current Thread [Next in Thread]