]> git.proxmox.com Git - qemu.git/commit - target-ppc/mmu-hash32.c
mmu-hash32: Remove odd pointer usage from BAT code
authorDavid Gibson <david@gibson.dropbear.id.au>
Tue, 12 Mar 2013 00:31:33 +0000 (00:31 +0000)
committerAlexander Graf <agraf@suse.de>
Fri, 22 Mar 2013 14:28:51 +0000 (15:28 +0100)
commit9986ed1ed07a01bdd236524b1a5cee695e68954a
treeb5e579b46688161bd6dc7725a6609c3ffcdfdf5a
parent6a9801106ed90b8817128e15b187a9d5f71a54d9
mmu-hash32: Remove odd pointer usage from BAT code

In the code for handling BATs, the hash32_bat_size_prot() and
hash32_bat_601_size_prot() functions are passed the BAT contents by
reference (pointer) for no clear reason, since they only need the values
within.

This patch removes this odd usage, and uses the resulting change to clean
up the caller slightly.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
target-ppc/mmu-hash32.c