[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v9 02/20] memory: Introduce size_memop
From: |
Tony Nguyen |
Subject: |
[Qemu-devel] [PATCH v9 02/20] memory: Introduce size_memop |
Date: |
Sat, 24 Aug 2019 04:29:05 +1000 |
The memory_region_dispatch_{read|write} operand "unsigned size" is
being converted into a "MemOp op".
Introduce no-op size_memop to aid preparatory conversion of
interfaces.
Once interfaces are converted, size_memop will be implemented to
return a MemOp from size in bytes.
Signed-off-by: Tony Nguyen <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>
---
include/exec/memop.h | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/include/exec/memop.h b/include/exec/memop.h
index 7262ca3dfd..dfd76a1604 100644
--- a/include/exec/memop.h
+++ b/include/exec/memop.h
@@ -107,4 +107,14 @@ typedef enum MemOp {
MO_SSIZE = MO_SIZE | MO_SIGN,
} MemOp;
+/* Size in bytes to MemOp. */
+static inline unsigned size_memop(unsigned size)
+{
+ /*
+ * FIXME: No-op to aid conversion of memory_region_dispatch_{read|write}
+ * "unsigned size" operand into a "MemOp op".
+ */
+ return size;
+}
+
#endif
--
2.23.0
- [Qemu-devel] [PATCH v9 00/20] Invert Endian bit in SPARCv9 MMU TTE, Tony Nguyen, 2019/08/22
- Re: [Qemu-devel] [PATCH v9 00/20] Invert Endian bit in SPARCv9 MMU TTE, Richard Henderson, 2019/08/22
- [Qemu-devel] [PATCH v9 01/20] tcg: TCGMemOp is now accelerator independent MemOp, Tony Nguyen, 2019/08/23
- [Qemu-devel] [PATCH v9 02/20] memory: Introduce size_memop,
Tony Nguyen <=
- [Qemu-devel] [PATCH v9 03/20] target/mips: Access MemoryRegion with MemOp, Tony Nguyen, 2019/08/23
- [Qemu-devel] [PATCH v9 04/20] hw/s390x: Access MemoryRegion with MemOp, Tony Nguyen, 2019/08/23
- [Qemu-devel] [PATCH v9 05/20] hw/intc/armv7m_nic: Access MemoryRegion with MemOp, Tony Nguyen, 2019/08/23
- [Qemu-devel] [PATCH v9 06/20] hw/virtio: Access MemoryRegion with MemOp, Tony Nguyen, 2019/08/23
- [Qemu-devel] [PATCH v9 07/20] hw/vfio: Access MemoryRegion with MemOp, Tony Nguyen, 2019/08/23
- [Qemu-devel] [PATCH v9 08/20] exec: Access MemoryRegion with MemOp, Tony Nguyen, 2019/08/23
- [Qemu-devel] [PATCH v9 10/20] memory: Access MemoryRegion with MemOp, Tony Nguyen, 2019/08/23
- [Qemu-devel] [PATCH v9 09/20] cputlb: Access MemoryRegion with MemOp, Tony Nguyen, 2019/08/23
- [Qemu-devel] [PATCH v9 12/20] target/mips: Hard code size with MO_{8|16|32|64}, Tony Nguyen, 2019/08/23
- [Qemu-devel] [PATCH v9 11/20] hw/s390x: Hard code size with MO_{8|16|32|64}, Tony Nguyen, 2019/08/23