This is a respin of Peter's patch, but - pass already-evaluated values to walk_directory() instead of an assert(), - check 'ptew > 1' instead of directory/leaf_shift == -1, - use unsigned type
Since v1: walk_directory() doesn't have to rely on the to sanitize the input values. Peter, if you don't see this as an improvement I'll take your original patch. Regards, Phil. Supersedes: <20230717162940.814078-1-peter.mayd...@linaro.org> Philippe Mathieu-Daudé (2): target/mips: Pass directory/leaf shift values to walk_directory() target/mips: Avoid shift by negative number in page_table_walk_refill() target/mips/tcg/sysemu/tlb_helper.c | 48 ++++++++++++++--------------- 1 file changed, 24 insertions(+), 24 deletions(-) -- 2.38.1