[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v1 2/6] s390x/tcg: add MMU for real addresses
From: |
David Hildenbrand |
Subject: |
Re: [Qemu-devel] [PATCH v1 2/6] s390x/tcg: add MMU for real addresses |
Date: |
Wed, 27 Sep 2017 14:20:40 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 |
> +/**
> + * Translate a real address into a physical (absolute) address.
> + * @param raddr the real address
> + * @param rw 0 = read, 1 = write, 2 = code fetch
> + * @param addr the translated address is stored to this pointer
----------------->^
Conny, if you want you can also insert one additional space here :)
> + * @param flags the PAGE_READ/WRITE/EXEC flags are stored to this pointer
> + * @return 0 if the translation was successful, < 0 if a fault occurred
> + */
> +int mmu_translate_real(CPUS390XState *env, target_ulong raddr, int rw,
> + target_ulong *addr, int *flags)
> +{
> + /* TODO: low address protection once we flush the tlb on cr changes */
> + *flags = PAGE_READ | PAGE_WRITE;
> + *addr = mmu_real2abs(env, raddr);
> +
> + /* TODO: storage key handling */
> + return 0;
> +}
>
--
Thanks,
David
- [Qemu-devel] [PATCH v1 0/6] s390x/tcg: fix some accesses using low address, David Hildenbrand, 2017/09/26
- [Qemu-devel] [PATCH v1 1/6] s390x/tcg: fix checking for invalid memory check, David Hildenbrand, 2017/09/26
- [Qemu-devel] [PATCH v1 2/6] s390x/tcg: add MMU for real addresses, David Hildenbrand, 2017/09/26
- Re: [Qemu-devel] [PATCH v1 2/6] s390x/tcg: add MMU for real addresses,
David Hildenbrand <=
- [Qemu-devel] [PATCH v1 3/6] s390x/tcg: make lura(g) use the new _real mmu., David Hildenbrand, 2017/09/26
- [Qemu-devel] [PATCH v1 4/6] s390x/tcg: make stora(g) use the new _real mmu, David Hildenbrand, 2017/09/26
- [Qemu-devel] [PATCH v1 5/6] s390x/tcg: make testblock use the new _real mmu, David Hildenbrand, 2017/09/26
- [Qemu-devel] [PATCH v1 6/6] s390x/tcg: make idte/ipte use the new _real mmu, David Hildenbrand, 2017/09/26
- Re: [Qemu-devel] [PATCH v1 0/6] s390x/tcg: fix some accesses using low address, Richard Henderson, 2017/09/26
- Re: [Qemu-devel] [PATCH v1 0/6] s390x/tcg: fix some accesses using low address, Cornelia Huck, 2017/09/27