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

2023-05-30 Thread BALATON Zoltan
On Mon, 29 May 2023, Richard Henderson wrote: 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

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

2023-05-29 Thread Richard Henderson
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.

[PATCH] tcg: Add tlb_index_and_entry() function

2023-05-29 Thread BALATON Zoltan
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 --- accel/tcg/cputlb.c