mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
target-microblaze: cpu_mmu_index: Fixup indentation
Fixup the indentation of cpu_mmu_index in preparation for future edits. No functional changes. Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
This commit is contained in:
parent
e956caf2a6
commit
923ce2e6af
1 changed files with 8 additions and 6 deletions
|
@ -360,13 +360,15 @@ int cpu_mb_signal_handler(int host_signum, void *pinfo,
|
||||||
|
|
||||||
static inline int cpu_mmu_index (CPUMBState *env, bool ifetch)
|
static inline int cpu_mmu_index (CPUMBState *env, bool ifetch)
|
||||||
{
|
{
|
||||||
/* Are we in nommu mode?. */
|
/* Are we in nommu mode?. */
|
||||||
if (!(env->sregs[SR_MSR] & MSR_VM))
|
if (!(env->sregs[SR_MSR] & MSR_VM)) {
|
||||||
return MMU_NOMMU_IDX;
|
return MMU_NOMMU_IDX;
|
||||||
|
}
|
||||||
|
|
||||||
if (env->sregs[SR_MSR] & MSR_UM)
|
if (env->sregs[SR_MSR] & MSR_UM) {
|
||||||
return MMU_USER_IDX;
|
return MMU_USER_IDX;
|
||||||
return MMU_KERNEL_IDX;
|
}
|
||||||
|
return MMU_KERNEL_IDX;
|
||||||
}
|
}
|
||||||
|
|
||||||
int mb_cpu_handle_mmu_fault(CPUState *cpu, vaddr address, int size, int rw,
|
int mb_cpu_handle_mmu_fault(CPUState *cpu, vaddr address, int size, int rw,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue