SPARC64: fix fault status overwritten on nonfaulting load
authorTsuneo Saito <tsnsaito@gmail.com>
Thu, 21 Jul 2011 15:16:31 +0000 (00:16 +0900)
committerBlue Swirl <blauwirbel@gmail.com>
Thu, 21 Jul 2011 20:01:48 +0000 (20:01 +0000)
commit77ab96eb474ac81bb88dcb76f440b166f1f4d09a
treea7bbe208f21aaba2b4e044a9631cbebd4a8052da
parent096b67d41a22142e8bfd8f0aef4fcfb5670e1217
SPARC64: fix fault status overwritten on nonfaulting load

cpu_get_phys_page_nofault() calls get_physical_address() twice,
that results in overwriting the fault status in the SFSR.
We need this change in order for nonfaulting loads to raising MMU faults
as normal loads do.
Also removed the call to cpu_get_physical_page_desc() since we are
going to modify nonfaulting loads raising MMU faults.

Signed-off-by: Tsuneo Saito <tsnsaito@gmail.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
target-sparc/helper.c