]> Git Repo - qemu.git/commit
target-ppc: Disentangle get_segment()
authorDavid Gibson <[email protected]>
Tue, 12 Mar 2013 00:31:09 +0000 (00:31 +0000)
committerAlexander Graf <[email protected]>
Fri, 22 Mar 2013 14:28:47 +0000 (15:28 +0100)
commit0480884f1404295ba0d242791e036b05c4957bab
treeab601cf1a02c895765e552bf370a9b5a8ce15f2c
parentc69b6151e7f242b02f261f321c392e5ef933176f
target-ppc: Disentangle get_segment()

The poorly named get_segment() function handles most of the address
translation logic for hash-based MMUs.  It has many ugly conditionals on
whether the MMU is 32-bit or 64-bit.

This patch splits the function into 32 and 64-bit versions, using the
switch on mmu_type that's already in the caller
(get_physical_address()) to select the right one.  Most of the
original function remains in mmu_helper.c to support the 6xx software
loaded TLB implementations (cleaning those up is a project for another
day).

Signed-off-by: David Gibson <[email protected]>
Signed-off-by: Alexander Graf <[email protected]>
target-ppc/mmu-hash32.c
target-ppc/mmu-hash32.h
target-ppc/mmu-hash64.c
target-ppc/mmu-hash64.h
target-ppc/mmu_helper.c
This page took 0.025226 seconds and 4 git commands to generate.