qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH 3/4] macio: add impl min_access_size and max_access_


From: Mark Cave-Ayland
Subject: [Qemu-devel] [PATCH 3/4] macio: add impl min_access_size and max_access_size to timer_ops
Date: Sun, 6 May 2018 15:20:04 +0100

>From testing all my local images the timer registers are only ever
read or written with 32-bit accesses.

Signed-off-by: Mark Cave-Ayland <address@hidden>
---
 hw/misc/macio/macio.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/hw/misc/macio/macio.c b/hw/misc/macio/macio.c
index f9a40eea81..4b020c57f5 100644
--- a/hw/misc/macio/macio.c
+++ b/hw/misc/macio/macio.c
@@ -276,6 +276,10 @@ static const MemoryRegionOps timer_ops = {
     .read = timer_read,
     .write = timer_write,
     .endianness = DEVICE_LITTLE_ENDIAN,
+    .impl = {
+        .min_access_size = 4,
+        .max_access_size = 4,
+    },
 };
 
 static void macio_newworld_realize(PCIDevice *d, Error **errp)
-- 
2.11.0




reply via email to

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