[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 18/36] target/ppc: Style fixes for mmu-hash32.[ch]
From: |
David Gibson |
Subject: |
[Qemu-devel] [PULL 18/36] target/ppc: Style fixes for mmu-hash32.[ch] |
Date: |
Fri, 26 Apr 2019 16:06:09 +1000 |
Signed-off-by: David Gibson <address@hidden>
Reviewed-by: Cédric Le Goater <address@hidden>
Reviewed-by: Greg Kurz <address@hidden>
---
target/ppc/mmu-hash32.c | 22 ++++++++++++++--------
1 file changed, 14 insertions(+), 8 deletions(-)
diff --git a/target/ppc/mmu-hash32.c b/target/ppc/mmu-hash32.c
index e8562a7c87..3f4dee835e 100644
--- a/target/ppc/mmu-hash32.c
+++ b/target/ppc/mmu-hash32.c
@@ -27,7 +27,7 @@
#include "mmu-hash32.h"
#include "exec/log.h"
-//#define DEBUG_BAT
+/* #define DEBUG_BAT */
#ifdef DEBUG_BATS
# define LOG_BATS(...) qemu_log_mask(CPU_LOG_MMU, __VA_ARGS__)
@@ -228,8 +228,10 @@ static int ppc_hash32_direct_store(PowerPCCPU *cpu,
target_ulong sr,
qemu_log_mask(CPU_LOG_MMU, "direct store...\n");
if ((sr & 0x1FF00000) >> 20 == 0x07f) {
- /* Memory-forced I/O controller interface access */
- /* If T=1 and BUID=x'07F', the 601 performs a memory access
+ /*
+ * Memory-forced I/O controller interface access
+ *
+ * If T=1 and BUID=x'07F', the 601 performs a memory access
* to SR[28-31] LA[4-31], bypassing all protection mechanisms.
*/
*raddr = ((sr & 0xF) << 28) | (eaddr & 0x0FFFFFFF);
@@ -265,9 +267,11 @@ static int ppc_hash32_direct_store(PowerPCCPU *cpu,
target_ulong sr,
}
return 1;
case ACCESS_CACHE:
- /* dcba, dcbt, dcbtst, dcbf, dcbi, dcbst, dcbz, or icbi */
- /* Should make the instruction do no-op.
- * As it already do no-op, it's quite easy :-)
+ /*
+ * dcba, dcbt, dcbtst, dcbf, dcbi, dcbst, dcbz, or icbi
+ *
+ * Should make the instruction do no-op. As it already do
+ * no-op, it's quite easy :-)
*/
*raddr = eaddr;
return 0;
@@ -519,8 +523,10 @@ int ppc_hash32_handle_mmu_fault(PowerPCCPU *cpu, vaddr
eaddr, int rwx,
if (rwx == 1) {
new_pte1 |= HPTE32_R_C; /* set changed (dirty) bit */
} else {
- /* Treat the page as read-only for now, so that a later write
- * will pass through this function again to set the C bit */
+ /*
+ * Treat the page as read-only for now, so that a later write
+ * will pass through this function again to set the C bit
+ */
prot &= ~PAGE_WRITE;
}
--
2.20.1
- [Qemu-devel] [PULL 00/36] ppc-for-4.1 queue 20190426, David Gibson, 2019/04/26
- [Qemu-devel] [PULL 03/36] spapr/rtas: modify spapr_rtas_register() to remove RTAS handlers, David Gibson, 2019/04/26
- [Qemu-devel] [PULL 04/36] spapr/irq: remove spapr_ics_create(), David Gibson, 2019/04/26
- [Qemu-devel] [PULL 05/36] target/ppc: Style fixes for ppc-models.[ch], David Gibson, 2019/04/26
- [Qemu-devel] [PULL 02/36] hw/ppc/prep: Drop useless inclusion of "hw/input/i8042.h", David Gibson, 2019/04/26
- [Qemu-devel] [PULL 11/36] target/ppc: Style fixes for gdbstub.c, David Gibson, 2019/04/26
- [Qemu-devel] [PULL 09/36] target/ppc: Style fixes for dfp_helper.c, David Gibson, 2019/04/26
- [Qemu-devel] [PULL 12/36] target/ppc: Style fixes for helper_regs.h, David Gibson, 2019/04/26
- [Qemu-devel] [PULL 17/36] target/ppc: Style fixes for misc_helper.c, David Gibson, 2019/04/26
- [Qemu-devel] [PULL 07/36] target/ppc: Style fixes for int_helper.c, David Gibson, 2019/04/26
- [Qemu-devel] [PULL 18/36] target/ppc: Style fixes for mmu-hash32.[ch],
David Gibson <=
- [Qemu-devel] [PULL 16/36] target/ppc: Style fixes for mfrom_table.inc.c & mfrom_table_gen.c, David Gibson, 2019/04/26
- [Qemu-devel] [PULL 13/36] target/ppc: Style fixes for kvm_ppc.h and kvm.c, David Gibson, 2019/04/26
- [Qemu-devel] [PULL 06/36] target/ppc: Style fixes for cpu.[ch], David Gibson, 2019/04/26
- [Qemu-devel] [PULL 10/36] target/ppc: Style fixes for excp_helper.c, David Gibson, 2019/04/26
- [Qemu-devel] [PULL 08/36] target/ppc: Style fixes for fpu_helper.c, David Gibson, 2019/04/26
- [Qemu-devel] [PULL 01/36] spapr: Support NVIDIA V100 GPU with NVLink2, David Gibson, 2019/04/26
- [Qemu-devel] [PULL 14/36] target/ppc: Style fixes for machine.c, David Gibson, 2019/04/26
- [Qemu-devel] [PULL 21/36] target/ppc: Style fixes for monitor.c, David Gibson, 2019/04/26
- [Qemu-devel] [PULL 26/36] target/ppc: Style fixes for translate/vmx-impl.inc.c, David Gibson, 2019/04/26
- [Qemu-devel] [PULL 23/36] target/ppc: Style fixes for translate.c, David Gibson, 2019/04/26