]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/ppc: Remove the function ppc_hash64_set_sdr1()
authorSuraj Jitindar Singh <sjitindarsingh@gmail.com>
Fri, 24 Feb 2017 01:05:12 +0000 (12:05 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 1 Mar 2017 00:23:39 +0000 (11:23 +1100)
commit8d63351f9f99412fd2b99e2f5a8be2bc87d5670e
tree9a11dcaca7eed77b062e47a14709921049496520
parente57ca75ce3b2bd33102573a8c0555d62e1bcfceb
target/ppc: Remove the function ppc_hash64_set_sdr1()

The function ppc_hash64_set_sdr1 basically checked the htabsize and set an
error if it was too big, otherwise it just stored the value in SPR_SDR1.

Given that the only function which calls ppc_hash64_set_sdr1() is
ppc_store_sdr1(), why not handle the checking in ppc_store_sdr1() to avoid
the extra function call. Note that ppc_store_sdr1() already stores the
value in SPR_SDR1 anyway, so we were doing it twice.

Signed-off-by: Suraj Jitindar Singh <sjitindarsingh@gmail.com>
[dwg: Remove unnecessary error temporary]
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target/ppc/mmu-hash64.c
target/ppc/mmu-hash64.h
target/ppc/mmu_helper.c