]> git.proxmox.com Git - mirror_qemu.git/commit
accel/tcg: Modify tlb_*() to use CPUState
authorAnton Johansson <anjo@rev.ng>
Tue, 12 Sep 2023 15:34:20 +0000 (17:34 +0200)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 4 Oct 2023 18:03:54 +0000 (11:03 -0700)
commit10b32e2cd9ab203c1643fbb0522550e64be8376f
treec29f3429f0b1a3681011c9d5a047e95f824b9636
parent7857ee114c6518165653d3ba87f24a1815c26f6f
accel/tcg: Modify tlb_*() to use CPUState

Changes tlb_*() functions to take CPUState instead of CPUArchState, as
they don't require the full CPUArchState. This makes it easier to
decouple target-(in)dependent code.

Signed-off-by: Anton Johansson <anjo@rev.ng>
Message-Id: <20230912153428.17816-4-anjo@rev.ng>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
[rth: Use cpu->neg.tlb instead of cpu_tlb()]
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
accel/tcg/cputlb.c
include/exec/cpu_ldst.h