Received: from eggs.gnu.org ([209.51.188.92]:43599) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hHrNj-000254-IU for qemu-devel@nongnu.org; Sat, 20 Apr 2019 10:54:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hHrL5-00019K-V0 for qemu-devel@nongnu.org; Sat, 20 Apr 2019 10:51:36 -0400 Received: from m12-13.163.com ([220.181.12.13]:58198) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hHrL5-00015r-AN for qemu-devel@nongnu.org; Sat, 20 Apr 2019 10:51:35 -0400 From: Li Qiang Date: Sat, 20 Apr 2019 07:51:18 -0700 Message-Id: <20190420145120.122847-2-liq3ea@163.com> In-Reply-To: <20190420145120.122847-1-liq3ea@163.com> References: <20190420145120.122847-1-liq3ea@163.com> Subject: [Qemu-devel] [PATCH 1/3] edu: mmio: set 'max_access_size' to 8 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: jslaby@suse.cz, pbonzini@redhat.com Cc: qemu-devel@nongnu.org, liq3ea@gmail.com, Li Qiang The edu spec said, the MMIO area can be accessed by 8 bytes. However currently the 'max_access_size' is not so the MMIO access dispatch can only access 4 bytes one time. This patch fixes this to respect the spec. Notice: here the 'min_access_size' is not a must, I set this for completement. Signed-off-by: Li Qiang --- hw/misc/edu.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/hw/misc/edu.c b/hw/misc/edu.c index 91af452c9e..65fc32b928 100644 --- a/hw/misc/edu.c +++ b/hw/misc/edu.c @@ -289,6 +289,15 @@ static const MemoryRegionOps edu_mmio_ops = { .read = edu_mmio_read, .write = edu_mmio_write, .endianness = DEVICE_NATIVE_ENDIAN, + .valid = { + .min_access_size = 4, + .max_access_size = 8, + }, + .impl = { + .min_access_size = 4, + .max_access_size = 8, + }, + }; /* -- 2.17.1