summaryrefslogtreecommitdiff
path: root/cputlb.c
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2017-02-21 14:00:16 +1100
committerDavid Gibson <david@gibson.dropbear.id.au>2017-03-01 11:23:39 +1100
commitc6404adebf923fdd9ee5edf92594dcf5df3b5b10 (patch)
treeb4c84b47f5c85ad25aa1e25e02fe33829c2f3c45 /cputlb.c
parent1ad9f0a464fe78d30ee60b3629f7a825cf2fab13 (diff)
downloadqemu-c6404adebf923fdd9ee5edf92594dcf5df3b5b10.tar.gz
pseries: Minor cleanups to HPT management hypercalls
* Standardize on 'ptex' instead of 'pte_index' for HPTE index variables for consistency and brevity * Avoid variables named 'index'; shadowing index(3) from libc can lead to surprising bugs if the variable is removed, because compiler errors might not appear for remaining references * Clarify index calculations in h_enter() - we have two cases, H_EXACT where the exact HPTE slot is given, and !H_EXACT where we search for an empty slot within the hash bucket. Make the calculation more consistent between the cases. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Reviewed-by: Suraj Jitindar Singh <sjitindarsingh@gmail.com>
Diffstat (limited to 'cputlb.c')
0 files changed, 0 insertions, 0 deletions