target/riscv: Rename riscv_cpu_mmu_index to riscv_env_mmu_index
Free up the riscv_cpu_mmu_index name for other usage; emphasize that the argument is 'env'. Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
f331e82c3d
commit
7f6f2ebbaa
@ -498,7 +498,7 @@ target_ulong riscv_cpu_get_geilen(CPURISCVState *env);
|
|||||||
void riscv_cpu_set_geilen(CPURISCVState *env, target_ulong geilen);
|
void riscv_cpu_set_geilen(CPURISCVState *env, target_ulong geilen);
|
||||||
bool riscv_cpu_vector_enabled(CPURISCVState *env);
|
bool riscv_cpu_vector_enabled(CPURISCVState *env);
|
||||||
void riscv_cpu_set_virt_enabled(CPURISCVState *env, bool enable);
|
void riscv_cpu_set_virt_enabled(CPURISCVState *env, bool enable);
|
||||||
int riscv_cpu_mmu_index(CPURISCVState *env, bool ifetch);
|
int riscv_env_mmu_index(CPURISCVState *env, bool ifetch);
|
||||||
G_NORETURN void riscv_cpu_do_unaligned_access(CPUState *cs, vaddr addr,
|
G_NORETURN void riscv_cpu_do_unaligned_access(CPUState *cs, vaddr addr,
|
||||||
MMUAccessType access_type,
|
MMUAccessType access_type,
|
||||||
int mmu_idx, uintptr_t retaddr);
|
int mmu_idx, uintptr_t retaddr);
|
||||||
@ -507,7 +507,7 @@ bool riscv_cpu_tlb_fill(CPUState *cs, vaddr address, int size,
|
|||||||
bool probe, uintptr_t retaddr);
|
bool probe, uintptr_t retaddr);
|
||||||
char *riscv_isa_string(RISCVCPU *cpu);
|
char *riscv_isa_string(RISCVCPU *cpu);
|
||||||
|
|
||||||
#define cpu_mmu_index riscv_cpu_mmu_index
|
#define cpu_mmu_index riscv_env_mmu_index
|
||||||
|
|
||||||
#ifndef CONFIG_USER_ONLY
|
#ifndef CONFIG_USER_ONLY
|
||||||
void riscv_cpu_do_transaction_failed(CPUState *cs, hwaddr physaddr,
|
void riscv_cpu_do_transaction_failed(CPUState *cs, hwaddr physaddr,
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
#include "tcg/oversized-guest.h"
|
#include "tcg/oversized-guest.h"
|
||||||
|
|
||||||
int riscv_cpu_mmu_index(CPURISCVState *env, bool ifetch)
|
int riscv_env_mmu_index(CPURISCVState *env, bool ifetch)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_USER_ONLY
|
#ifdef CONFIG_USER_ONLY
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user