[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v7 12/42] hw/s390x: Hard code size with MO_{8|16|32|
From: |
tony.nguyen |
Subject: |
[Qemu-devel] [PATCH v7 12/42] hw/s390x: Hard code size with MO_{8|16|32|64} |
Date: |
Fri, 16 Aug 2019 07:30:52 +0000 |
Temporarily no-op size_memop was introduced to aid the conversion of
memory_region_dispatch_{read|write} operand "unsigned size" into
"MemOp op".
Now size_memop is implemented, again hard coded size but with
MO_{8|16|32|64}. This is more expressive and avoids size_memop calls.
Signed-off-by: Tony Nguyen <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>
Reviewed-by: Cornelia Huck <address@hidden>
---
hw/s390x/s390-pci-inst.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/hw/s390x/s390-pci-inst.c b/hw/s390x/s390-pci-inst.c
index 0c958fc..0e92a37 100644
--- a/hw/s390x/s390-pci-inst.c
+++ b/hw/s390x/s390-pci-inst.c
@@ -782,8 +782,7 @@ int pcistb_service_call(S390CPU *cpu, uint8_t r1, uint8_t
r3, uint64_t gaddr,
for (i = 0; i < len / 8; i++) {
result = memory_region_dispatch_write(mr, offset + i * 8,
ldq_p(buffer + i * 8),
- size_memop(8),
- MEMTXATTRS_UNSPECIFIED);
+ MO_64, MEMTXATTRS_UNSPECIFIED);
if (result != MEMTX_OK) {
s390_program_interrupt(env, PGM_OPERAND, 6, ra);
return 0;
--
1.8.3.1
?
- [Qemu-devel] [PATCH v7 04/42] target/mips: Access MemoryRegion with MemOp, (continued)
- [Qemu-devel] [PATCH v7 04/42] target/mips: Access MemoryRegion with MemOp, tony.nguyen, 2019/08/16
- [Qemu-devel] [PATCH v7 05/42] hw/s390x: Access MemoryRegion with MemOp, tony.nguyen, 2019/08/16
- [Qemu-devel] [PATCH v7 06/42] hw/intc/armv7m_nic: Access MemoryRegion with MemOp, tony.nguyen, 2019/08/16
- [Qemu-devel] [PATCH v7 02/42] tcg: TCGMemOp is now accelerator independent MemOp, tony.nguyen, 2019/08/16
- [Qemu-devel] [PATCH v7 07/42] hw/virtio: Access MemoryRegion with MemOp, tony.nguyen, 2019/08/16
- [Qemu-devel] [PATCH v7 08/42] hw/vfio: Access MemoryRegion with MemOp, tony.nguyen, 2019/08/16
- [Qemu-devel] [PATCH v7 09/42] exec: Access MemoryRegion with MemOp, tony.nguyen, 2019/08/16
- [Qemu-devel] [PATCH v7 10/42] cputlb: Access MemoryRegion with MemOp, tony.nguyen, 2019/08/16
- [Qemu-devel] [PATCH v7 11/42] memory: Access MemoryRegion with MemOp, tony.nguyen, 2019/08/16
- [Qemu-devel] [PATCH v7 12/42] hw/s390x: Hard code size with MO_{8|16|32|64},
tony.nguyen <=
- [Qemu-devel] [PATCH v7 13/42] target/mips: Hard code size with MO_{8|16|32|64}, tony.nguyen, 2019/08/16
- [Qemu-devel] [PATCH v7 14/42] exec: Hard code size with MO_{8|16|32|64}, tony.nguyen, 2019/08/16
- [Qemu-devel] [PATCH v7 16/42] hw/block: Declare device little or big endian, tony.nguyen, 2019/08/16
- [Qemu-devel] [PATCH v7 15/42] hw/audio: Declare device little or big endian, tony.nguyen, 2019/08/16
- [Qemu-devel] [PATCH v7 17/42] hw/char: Declare device little or big endian, tony.nguyen, 2019/08/16
- [Qemu-devel] [PATCH v7 18/42] hw/display: Declare device little or big endian, tony.nguyen, 2019/08/16
- [Qemu-devel] [PATCH v7 20/42] hw/gpio: Declare device little or big endian, tony.nguyen, 2019/08/16
- [Qemu-devel] [PATCH v7 19/42] hw/dma: Declare device little or big endian, tony.nguyen, 2019/08/16
- [Qemu-devel] [PATCH v7 21/42] hw/i2c: Declare device little or big endian, tony.nguyen, 2019/08/16
- [Qemu-devel] [PATCH v7 22/42] hw/input: Declare device little or big endian, tony.nguyen, 2019/08/16