Re: [Qemu-devel] [PATCH v5 12/37] target-arm: A64: Implement DC ZVA

2014-04-04 Thread Peter Maydell
On 28 March 2014 18:42, Richard Henderson wrote: > On 03/28/2014 09:09 AM, Peter Maydell wrote: >> +for (i = 0; i < maxidx; i++) { >> +hostaddr[i] = tlb_vaddr_to_host(env, >> +vaddr + TARGET_PAGE_SIZE * >> i, >> +

Re: [Qemu-devel] [PATCH v5 12/37] target-arm: A64: Implement DC ZVA

2014-03-28 Thread Richard Henderson
On 03/28/2014 09:09 AM, Peter Maydell wrote: > +for (i = 0; i < maxidx; i++) { > +hostaddr[i] = tlb_vaddr_to_host(env, > +vaddr + TARGET_PAGE_SIZE * i, > +1, cpu_mmu_index(env

[Qemu-devel] [PATCH v5 12/37] target-arm: A64: Implement DC ZVA

2014-03-28 Thread Peter Maydell
Implement the DC ZVA instruction, which clears a block of memory. The fast path obtains a pointer to the underlying RAM via the TCG TLB data structure so we can do a direct memset(), with fallback to a simple byte-store loop in the slow path. Signed-off-by: Peter Maydell --- include/exec/softmmu