qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] tcg: Add tlb_index_and_entry() function


From: Richard Henderson
Subject: Re: [PATCH] tcg: Add tlb_index_and_entry() function
Date: Mon, 29 May 2023 21:08:41 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0

On 5/29/23 17:05, BALATON Zoltan wrote:
The tlb index and entry are often retrieved together and tlb_entry()
already calls tlb_index() so it could easily return it. Add a
tlb_index_and_entry() function that does that to simplify callers and
maybe avoid some duplicate calculations.

Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>

The compiler does a good job removing duplicate calculations already.
What effect do you see with this?


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]