[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v6 13/26] target/mips: Hard code size with MO_{8|16|
From: |
tony.nguyen |
Subject: |
[Qemu-devel] [PATCH v6 13/26] target/mips: Hard code size with MO_{8|16|32|64} |
Date: |
Wed, 7 Aug 2019 08:30:28 +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 avoid size_memop calls.
Signed-off-by: Tony Nguyen <address@hidden>
---
target/mips/op_helper.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/target/mips/op_helper.c b/target/mips/op_helper.c
index 1c72a00..e79f99d 100644
--- a/target/mips/op_helper.c
+++ b/target/mips/op_helper.c
@@ -4741,11 +4741,11 @@ void helper_cache(CPUMIPSState *env, target_ulong addr,
uint32_t op)
if (op == 9) {
/* Index Store Tag */
memory_region_dispatch_write(env->itc_tag, index, env->CP0_TagLo,
- size_memop(8), MEMTXATTRS_UNSPECIFIED);
+ MO_64, MEMTXATTRS_UNSPECIFIED);
} else if (op == 5) {
/* Index Load Tag */
memory_region_dispatch_read(env->itc_tag, index, &env->CP0_TagLo,
- size_memop(8), MEMTXATTRS_UNSPECIFIED);
+ MO_64, MEMTXATTRS_UNSPECIFIED);
}
#endif
}
--
1.8.3.1
?
- [Qemu-devel] [PATCH v6 09/26] exec: Access MemoryRegion with MemOp, (continued)
- [Qemu-devel] [PATCH v6 09/26] exec: Access MemoryRegion with MemOp, tony.nguyen, 2019/08/07
- [Qemu-devel] [PATCH v6 10/26] cputlb: Access MemoryRegion with MemOp, tony.nguyen, 2019/08/07
- [Qemu-devel] [PATCH v6 11/26] memory: Access MemoryRegion with MemOp, tony.nguyen, 2019/08/07
- [Qemu-devel] [PATCH v6 12/26] hw/s390x: Hard code size with MO_{8|16|32|64}, tony.nguyen, 2019/08/07
- [Qemu-devel] [PATCH v6 13/26] target/mips: Hard code size with MO_{8|16|32|64},
tony.nguyen <=
- [Qemu-devel] [PATCH v6 14/26] exec: Hard code size with MO_{8|16|32|64}, tony.nguyen, 2019/08/07
- [Qemu-devel] [PATCH v6 16/26] exec: Map device_endian onto MemOp, tony.nguyen, 2019/08/07
- [Qemu-devel] [PATCH v6 18/26] exec: Delete device_endian, tony.nguyen, 2019/08/07
- [Qemu-devel] [PATCH v6 19/26] exec: Delete DEVICE_HOST_ENDIAN, tony.nguyen, 2019/08/07