[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 07/14] exec.c: Add new address_space_ld*/st* fun
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH 07/14] exec.c: Add new address_space_ld*/st* functions |
Date: |
Wed, 08 Apr 2015 13:03:25 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 |
On 07/04/2015 22:09, Peter Maydell wrote:
> +#ifdef NEED_CPU_H
> +uint32_t address_space_lduw(AddressSpace *as, hwaddr addr,
> + MemTxAttrs attrs, MemTxResult *result);
> +uint32_t address_space_ldl(AddressSpace *as, hwaddr addr,
> + MemTxAttrs attrs, MemTxResult *result);
> +uint64_t address_space_ldq(AddressSpace *as, hwaddr addr,
> + MemTxAttrs attrs, MemTxResult *result);
> +void address_space_stl_notdirty(AddressSpace *as, hwaddr addr, uint32_t val,
> + MemTxAttrs attrs, MemTxResult *result);
> +void address_space_stw(AddressSpace *as, hwaddr addr, uint32_t val,
> + MemTxAttrs attrs, MemTxResult *result);
> +void address_space_stl(AddressSpace *as, hwaddr addr, uint32_t val,
> + MemTxAttrs attrs, MemTxResult *result);
> +void address_space_stq(AddressSpace *as, hwaddr addr, uint64_t val,
> + MemTxAttrs attrs, MemTxResult *result);
> +#endif
I think we do not want to expose these at all (or at least, all users
should really be CPUs and hence use *_phys functions).
S390 is always big-endian, and watch_mem_read/write can use the same
buffer trick as subpages (and in fact should probably use memattrs as well).
So, please at least add a comment that these functions are deprecated,
and check if watch_mem_read/write should be handled like subpages.
Thanks,
Paolo
- Re: [Qemu-devel] [PATCH 02/14] memory: Add MemTxAttrs, MemTxResult to io_mem_read and io_mem_write, (continued)
- [Qemu-devel] [PATCH 13/14] target-arm: Use attribute info to handle user-only watchpoints, Peter Maydell, 2015/04/07
- [Qemu-devel] [PATCH 09/14] exec.c: Capture the memory attributes for a watchpoint hit, Peter Maydell, 2015/04/07
- [Qemu-devel] [PATCH 07/14] exec.c: Add new address_space_ld*/st* functions, Peter Maydell, 2015/04/07
- [Qemu-devel] [PATCH 14/14] target-arm: Check watchpoints against CPU security state, Peter Maydell, 2015/04/07
- [Qemu-devel] [PATCH 01/14] memory: Define API for MemoryRegionOps to take attrs and return status, Peter Maydell, 2015/04/07