diff options
Diffstat (limited to 'big-little/virtualisor/virt_handle.c')
-rw-r--r-- | big-little/virtualisor/virt_handle.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/big-little/virtualisor/virt_handle.c b/big-little/virtualisor/virt_handle.c index abdf604..ca3cb8e 100644 --- a/big-little/virtualisor/virt_handle.c +++ b/big-little/virtualisor/virt_handle.c @@ -186,7 +186,7 @@ void trap_cp15_mrc_mcr_handle(unsigned hsr, gp_regs * regs) switch (CRm) { case 0: switch (Op2) { - unsigned csselr, level, ind; + unsigned csselr, level, ind; case CCSIDR: if (write) goto error; @@ -198,20 +198,20 @@ void trap_cp15_mrc_mcr_handle(unsigned hsr, gp_regs * regs) * The error is later corrected in the * A7 or A15 specific trap function. */ - csselr = target_cache_geometry[cpu_id]. - csselr; + csselr = + target_cache_geometry + [cpu_id].csselr; level = get_cache_level(csselr); ind = get_cache_ind(csselr); regs->r[Rt] = - target_cache_geometry[cpu_id]. - ccsidr[level][ind]; + target_cache_geometry[cpu_id].ccsidr + [level][ind]; break; case CLIDR: if (write) goto error; regs->r[Rt] = - target_cache_geometry[cpu_id]. - clidr; + target_cache_geometry[cpu_id].clidr; break; case AIDR: if (write) @@ -233,13 +233,13 @@ void trap_cp15_mrc_mcr_handle(unsigned hsr, gp_regs * regs) case CSSELR: if (write) { target_cache_geometry - [cpu_id].csselr = regs->r[Rt]; + [cpu_id].csselr = + regs->r[Rt]; write_csselr(regs->r[Rt]); - } - else + } else regs->r[Rt] = - target_cache_geometry - [cpu_id].csselr; + target_cache_geometry + [cpu_id].csselr; break; default: goto error; @@ -575,7 +575,7 @@ void trap_dabort_handle(unsigned hsr, gp_regs * regs) return; } -void trap_hvc_handle(unsigned hsr, gp_regs *regs) +void trap_hvc_handle(unsigned hsr, gp_regs * regs) { unsigned opcode = regs->r[0]; @@ -587,7 +587,7 @@ void trap_hvc_handle(unsigned hsr, gp_regs *regs) */ case HVC_SWITCHER_CLUSTER_SWITCH: /* Do not switch till previous one has completed */ - while (FALSE == cluster_reset_status(!read_clusterid())); + while (FALSE == cluster_reset_status(!read_clusterid())) ; signal_switchover(); break; |