]> git.proxmox.com Git - qemu.git/commit
booke_206_tlbwe: Discard invalid bits in MAS2
authorFabien Chouteau <chouteau@adacore.com>
Mon, 21 May 2012 06:11:06 +0000 (06:11 +0000)
committerAlexander Graf <agraf@suse.de>
Sat, 23 Jun 2012 23:04:44 +0000 (01:04 +0200)
commit77c2cf33fe8d272e5375b55c588202a18af0e27c
treef7f5bb5d7e0cff6c717adddf7dc6db04caeb3715
parentc8f803e77a39584af30082b7ba11e69a9f046224
booke_206_tlbwe: Discard invalid bits in MAS2

The size of EPN field in MAS2 depends on page size. This patch adds a
mask to discard invalid bits in EPN field.

Definition of EPN field from e500v2 RM:
EPN Effective page number: Depending on page size, only the bits
associated with a page boundary are valid. Bits that represent offsets
within a page are ignored and should be cleared.

There is a similar (but more complicated) definition in PowerISA V2.06.

Signed-off-by: Fabien Chouteau <chouteau@adacore.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
target-ppc/mmu_helper.c