mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
target/loongarch: Add static definition with function loongarch_tlb_search()
Function loongarch_tlb_search() is only referenced in file tcg/tlb_helper.c, define this function with static attribution. Signed-off-by: Bibo Mao <maobibo@loongson.cn> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-Id: <20250423080417.3739809-9-maobibo@loongson.cn> Signed-off-by: Song Gao <gaosong@loongson.cn>
This commit is contained in:
@@ -54,8 +54,6 @@ uint64_t cpu_loongarch_get_constant_timer_counter(LoongArchCPU *cpu);
|
||||
uint64_t cpu_loongarch_get_constant_timer_ticks(LoongArchCPU *cpu);
|
||||
void cpu_loongarch_store_constant_timer_config(LoongArchCPU *cpu,
|
||||
uint64_t value);
|
||||
bool loongarch_tlb_search(CPULoongArchState *env, target_ulong vaddr,
|
||||
int *index);
|
||||
int get_physical_address(CPULoongArchState *env, hwaddr *physical,
|
||||
int *prot, target_ulong address,
|
||||
MMUAccessType access_type, int mmu_idx, int is_debug);
|
||||
|
||||
@@ -209,8 +209,8 @@ static uint32_t get_random_tlb(uint32_t low, uint32_t high)
|
||||
* field in tlb entry contains bit[47:13], so need adjust.
|
||||
* virt_vpn = vaddr[47:13]
|
||||
*/
|
||||
bool loongarch_tlb_search(CPULoongArchState *env, target_ulong vaddr,
|
||||
int *index)
|
||||
static bool loongarch_tlb_search(CPULoongArchState *env, target_ulong vaddr,
|
||||
int *index)
|
||||
{
|
||||
LoongArchTLB *tlb;
|
||||
uint16_t csr_asid, tlb_asid, stlb_idx;
|
||||
|
||||
Reference in New Issue
Block a user