On 6/2/25 23:11, Hao Wu wrote:
The NPCM8xx GCR device can be accessed with 64-bit memory operations.
This patch supports that.

Reviewed-by: Peter Maydell <peter.mayd...@linaro.org>
Signed-off-by: Hao Wu <wuhao...@google.com>
---
  hw/misc/npcm_gcr.c   | 94 +++++++++++++++++++++++++++++++++-----------
  hw/misc/trace-events |  4 +-
  2 files changed, 74 insertions(+), 24 deletions(-)


  static const struct MemoryRegionOps npcm_gcr_ops = {
@@ -261,7 +310,8 @@ static const struct MemoryRegionOps npcm_gcr_ops = {
      .endianness = DEVICE_LITTLE_ENDIAN,
      .valid      = {
          .min_access_size        = 4,
-        .max_access_size        = 4,
+        .max_access_size        = 8,
+        .accepts                = npcm_gcr_check_mem_op,

Good idea to implement the accepts() handler!

Reviewed-by: Philippe Mathieu-Daudé <phi...@linaro.org>

          .unaligned              = false,
      },
  };


Reply via email to