[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 03/36] target/mips: Access MemoryRegion with MemOp
From: |
Richard Henderson |
Subject: |
[Qemu-devel] [PATCH 03/36] target/mips: Access MemoryRegion with MemOp |
Date: |
Tue, 3 Sep 2019 09:08:25 -0700 |
From: Tony Nguyen <address@hidden>
The memory_region_dispatch_{read|write} operand "unsigned size" is
being converted into a "MemOp op".
Convert interfaces by using no-op size_memop.
After all interfaces are converted, size_memop will be implemented
and the memory_region_dispatch_{read|write} operand "unsigned size"
will be converted into a "MemOp op".
As size_memop is a no-op, this patch does not change any behaviour.
Signed-off-by: Tony Nguyen <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>
Reviewed-by: Aleksandar Markovic <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Richard Henderson <address@hidden>
---
target/mips/op_helper.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/target/mips/op_helper.c b/target/mips/op_helper.c
index f88a3ab904..1f0e88364a 100644
--- a/target/mips/op_helper.c
+++ b/target/mips/op_helper.c
@@ -24,6 +24,7 @@
#include "exec/helper-proto.h"
#include "exec/exec-all.h"
#include "exec/cpu_ldst.h"
+#include "exec/memop.h"
#include "sysemu/kvm.h"
#include "fpu/softfloat.h"
@@ -4741,11 +4742,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,
- 8, MEMTXATTRS_UNSPECIFIED);
+ size_memop(8), MEMTXATTRS_UNSPECIFIED);
} else if (op == 5) {
/* Index Load Tag */
memory_region_dispatch_read(env->itc_tag, index, &env->CP0_TagLo,
- 8, MEMTXATTRS_UNSPECIFIED);
+ size_memop(8), MEMTXATTRS_UNSPECIFIED);
}
#endif
}
--
2.17.1
- [Qemu-devel] [PATCH 00/36] tcg patch queue, Richard Henderson, 2019/09/03
- [Qemu-devel] [PATCH 02/36] memory: Introduce size_memop, Richard Henderson, 2019/09/03
- [Qemu-devel] [PATCH 04/36] hw/s390x: Access MemoryRegion with MemOp, Richard Henderson, 2019/09/03
- [Qemu-devel] [PATCH 03/36] target/mips: Access MemoryRegion with MemOp,
Richard Henderson <=
- [Qemu-devel] [PATCH 05/36] hw/intc/armv7m_nic: Access MemoryRegion with MemOp, Richard Henderson, 2019/09/03
- [Qemu-devel] [PATCH 07/36] hw/vfio: Access MemoryRegion with MemOp, Richard Henderson, 2019/09/03
- [Qemu-devel] [PATCH 06/36] hw/virtio: Access MemoryRegion with MemOp, Richard Henderson, 2019/09/03
- [Qemu-devel] [PATCH 09/36] cputlb: Access MemoryRegion with MemOp, Richard Henderson, 2019/09/03
- [Qemu-devel] [PATCH 10/36] memory: Access MemoryRegion with MemOp, Richard Henderson, 2019/09/03
- [Qemu-devel] [PATCH 11/36] hw/s390x: Hard code size with MO_{8|16|32|64}, Richard Henderson, 2019/09/03
- [Qemu-devel] [PATCH 08/36] exec: Access MemoryRegion with MemOp, Richard Henderson, 2019/09/03
- [Qemu-devel] [PATCH 12/36] target/mips: Hard code size with MO_{8|16|32|64}, Richard Henderson, 2019/09/03
- [Qemu-devel] [PATCH 13/36] exec: Hard code size with MO_{8|16|32|64}, Richard Henderson, 2019/09/03
- [Qemu-devel] [PATCH 01/36] tcg: TCGMemOp is now accelerator independent MemOp, Richard Henderson, 2019/09/03