[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [qemu-s390x] [Qemu-devel] [PATCH v4 03/15] target/mips: Access Memor
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [qemu-s390x] [Qemu-devel] [PATCH v4 03/15] target/mips: Access MemoryRegion with MemOp |
Date: |
Thu, 25 Jul 2019 13:37:39 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 |
On 7/25/19 11:52 AM, address@hidden wrote:
<no description>
I think Aleksandar will ask you to describe what the MemOp does, you can
add something like:
The MEMOP_SIZE() macro will allow us to later easily convert the
memory_region_dispatch_ACCESS() functions to ...
Meanwhile this macro is a no-op. Thus this patch does not introduce
any logical change.
And you can reuse this blob in the other patches around.
With an improved patch description:
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
> Signed-off-by: Tony Nguyen <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 9e2e02f..dccb8df 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"
>
>
> /*****************************************************************************/
> @@ -4740,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,
> - 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
> }
> --
> 1.8.3.1
>
>
>
- [qemu-s390x] [Qemu-devel] [PATCH v4 00/15] Invert Endian bit in SPARCv9 MMU TTE, tony.nguyen, 2019/07/25
- [qemu-s390x] [Qemu-devel] [PATCH v4 01/15] tcg: TCGMemOp is now accelerator independent MemOp, tony.nguyen, 2019/07/25
- [qemu-s390x] [Qemu-devel] [PATCH v4 03/15] target/mips: Access MemoryRegion with MemOp, tony.nguyen, 2019/07/25
- [qemu-s390x] [Qemu-devel] [PATCH v4 04/15] hw/s390x: Access MemoryRegion with MemOp, tony.nguyen, 2019/07/25
- [qemu-s390x] [Qemu-devel] [PATCH v4 05/15] hw/intc/armv7m_nic: Access MemoryRegion with MemOp, tony.nguyen, 2019/07/25
- [qemu-s390x] [Qemu-devel] [PATCH v4 06/15] hw/virtio: Access MemoryRegion with MemOp, tony.nguyen, 2019/07/25
- [qemu-s390x] [Qemu-devel] [PATCH v4 07/15] hw/vfio: Access MemoryRegion with MemOp, tony.nguyen, 2019/07/25
- [qemu-s390x] [Qemu-devel] [PATCH v4 08/15] exec: Access MemoryRegion with MemOp, tony.nguyen, 2019/07/25
- [qemu-s390x] [Qemu-devel] [PATCH v4 09/15] cputlb: Access MemoryRegion with MemOp, tony.nguyen, 2019/07/25