mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
target/mips: Fix code style for checkpatch.pl
We are going to move this code, fix its style first. Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20201206233949.3783184-14-f4bug@amsat.org>
This commit is contained in:
parent
4cb213dc90
commit
ca2690e36a
1 changed files with 18 additions and 18 deletions
|
@ -936,19 +936,19 @@ void mips_cpu_list(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef CONFIG_USER_ONLY
|
#ifndef CONFIG_USER_ONLY
|
||||||
static void no_mmu_init (CPUMIPSState *env, const mips_def_t *def)
|
static void no_mmu_init(CPUMIPSState *env, const mips_def_t *def)
|
||||||
{
|
{
|
||||||
env->tlb->nb_tlb = 1;
|
env->tlb->nb_tlb = 1;
|
||||||
env->tlb->map_address = &no_mmu_map_address;
|
env->tlb->map_address = &no_mmu_map_address;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void fixed_mmu_init (CPUMIPSState *env, const mips_def_t *def)
|
static void fixed_mmu_init(CPUMIPSState *env, const mips_def_t *def)
|
||||||
{
|
{
|
||||||
env->tlb->nb_tlb = 1;
|
env->tlb->nb_tlb = 1;
|
||||||
env->tlb->map_address = &fixed_mmu_map_address;
|
env->tlb->map_address = &fixed_mmu_map_address;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void r4k_mmu_init (CPUMIPSState *env, const mips_def_t *def)
|
static void r4k_mmu_init(CPUMIPSState *env, const mips_def_t *def)
|
||||||
{
|
{
|
||||||
env->tlb->nb_tlb = 1 + ((def->CP0_Config1 >> CP0C1_MMU) & 63);
|
env->tlb->nb_tlb = 1 + ((def->CP0_Config1 >> CP0C1_MMU) & 63);
|
||||||
env->tlb->map_address = &r4k_map_address;
|
env->tlb->map_address = &r4k_map_address;
|
||||||
|
@ -960,7 +960,7 @@ static void r4k_mmu_init (CPUMIPSState *env, const mips_def_t *def)
|
||||||
env->tlb->helper_tlbinvf = r4k_helper_tlbinvf;
|
env->tlb->helper_tlbinvf = r4k_helper_tlbinvf;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void mmu_init (CPUMIPSState *env, const mips_def_t *def)
|
static void mmu_init(CPUMIPSState *env, const mips_def_t *def)
|
||||||
{
|
{
|
||||||
env->tlb = g_malloc0(sizeof(CPUMIPSTLBContext));
|
env->tlb = g_malloc0(sizeof(CPUMIPSTLBContext));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue