All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Philippe Mathieu-Daudé" <f4bug@amsat.org>
To: qemu-devel@nongnu.org
Cc: "Aurelien Jarno" <aurelien@aurel32.net>,
	"Jiaxun Yang" <jiaxun.yang@flygoat.com>,
	"Paul Burton" <paulburton@kernel.org>,
	kvm@vger.kernel.org, "Huacai Chen" <chenhuacai@kernel.org>,
	"Philippe Mathieu-Daudé" <f4bug@amsat.org>,
	"Richard Henderson" <richard.henderson@linaro.org>,
	"Aleksandar Rikalo" <aleksandar.rikalo@syrmia.com>,
	"Paolo Bonzini" <pbonzini@redhat.com>
Subject: [PATCH 13/19] target/mips: Fix code style for checkpatch.pl
Date: Mon,  7 Dec 2020 00:39:43 +0100	[thread overview]
Message-ID: <20201206233949.3783184-14-f4bug@amsat.org> (raw)
In-Reply-To: <20201206233949.3783184-1-f4bug@amsat.org>

We are going to move this code, fix its style first.

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
 target/mips/translate_init.c.inc | 36 ++++++++++++++++----------------
 1 file changed, 18 insertions(+), 18 deletions(-)

diff --git a/target/mips/translate_init.c.inc b/target/mips/translate_init.c.inc
index ea85d5c6a79..535b52b5444 100644
--- a/target/mips/translate_init.c.inc
+++ b/target/mips/translate_init.c.inc
@@ -932,19 +932,19 @@ void mips_cpu_list(void)
 }
 
 #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->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->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->map_address = &r4k_map_address;
@@ -956,25 +956,25 @@ static void r4k_mmu_init (CPUMIPSState *env, const mips_def_t *def)
     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));
 
     switch (def->mmu_type) {
-        case MMU_TYPE_NONE:
-            no_mmu_init(env, def);
-            break;
-        case MMU_TYPE_R4000:
-            r4k_mmu_init(env, def);
-            break;
-        case MMU_TYPE_FMT:
-            fixed_mmu_init(env, def);
-            break;
-        case MMU_TYPE_R3000:
-        case MMU_TYPE_R6000:
-        case MMU_TYPE_R8000:
-        default:
-            cpu_abort(env_cpu(env), "MMU type not supported\n");
+    case MMU_TYPE_NONE:
+        no_mmu_init(env, def);
+        break;
+    case MMU_TYPE_R4000:
+        r4k_mmu_init(env, def);
+        break;
+    case MMU_TYPE_FMT:
+        fixed_mmu_init(env, def);
+        break;
+    case MMU_TYPE_R3000:
+    case MMU_TYPE_R6000:
+    case MMU_TYPE_R8000:
+    default:
+        cpu_abort(env_cpu(env), "MMU type not supported\n");
     }
 }
 #endif /* CONFIG_USER_ONLY */
-- 
2.26.2


WARNING: multiple messages have this Message-ID (diff)
From: "Philippe Mathieu-Daudé" <f4bug@amsat.org>
To: qemu-devel@nongnu.org
Cc: "Aleksandar Rikalo" <aleksandar.rikalo@syrmia.com>,
	kvm@vger.kernel.org, "Paul Burton" <paulburton@kernel.org>,
	"Huacai Chen" <chenhuacai@kernel.org>,
	"Richard Henderson" <richard.henderson@linaro.org>,
	"Philippe Mathieu-Daudé" <f4bug@amsat.org>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	"Aurelien Jarno" <aurelien@aurel32.net>
Subject: [PATCH 13/19] target/mips: Fix code style for checkpatch.pl
Date: Mon,  7 Dec 2020 00:39:43 +0100	[thread overview]
Message-ID: <20201206233949.3783184-14-f4bug@amsat.org> (raw)
In-Reply-To: <20201206233949.3783184-1-f4bug@amsat.org>

We are going to move this code, fix its style first.

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
 target/mips/translate_init.c.inc | 36 ++++++++++++++++----------------
 1 file changed, 18 insertions(+), 18 deletions(-)

diff --git a/target/mips/translate_init.c.inc b/target/mips/translate_init.c.inc
index ea85d5c6a79..535b52b5444 100644
--- a/target/mips/translate_init.c.inc
+++ b/target/mips/translate_init.c.inc
@@ -932,19 +932,19 @@ void mips_cpu_list(void)
 }
 
 #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->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->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->map_address = &r4k_map_address;
@@ -956,25 +956,25 @@ static void r4k_mmu_init (CPUMIPSState *env, const mips_def_t *def)
     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));
 
     switch (def->mmu_type) {
-        case MMU_TYPE_NONE:
-            no_mmu_init(env, def);
-            break;
-        case MMU_TYPE_R4000:
-            r4k_mmu_init(env, def);
-            break;
-        case MMU_TYPE_FMT:
-            fixed_mmu_init(env, def);
-            break;
-        case MMU_TYPE_R3000:
-        case MMU_TYPE_R6000:
-        case MMU_TYPE_R8000:
-        default:
-            cpu_abort(env_cpu(env), "MMU type not supported\n");
+    case MMU_TYPE_NONE:
+        no_mmu_init(env, def);
+        break;
+    case MMU_TYPE_R4000:
+        r4k_mmu_init(env, def);
+        break;
+    case MMU_TYPE_FMT:
+        fixed_mmu_init(env, def);
+        break;
+    case MMU_TYPE_R3000:
+    case MMU_TYPE_R6000:
+    case MMU_TYPE_R8000:
+    default:
+        cpu_abort(env_cpu(env), "MMU type not supported\n");
     }
 }
 #endif /* CONFIG_USER_ONLY */
-- 
2.26.2



  parent reply	other threads:[~2020-12-06 23:41 UTC|newest]

Thread overview: 91+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-06 23:39 [PATCH 00/19] target/mips: Boring code reordering Philippe Mathieu-Daudé
2020-12-06 23:39 ` Philippe Mathieu-Daudé
2020-12-06 23:39 ` [PATCH 01/19] hw/mips: Move address translation helpers to target/mips/ Philippe Mathieu-Daudé
2020-12-06 23:39   ` Philippe Mathieu-Daudé
2020-12-08 21:46   ` Richard Henderson
2020-12-08 21:46     ` Richard Henderson
2020-12-06 23:39 ` [PATCH 02/19] target/mips: Remove unused headers from translate.c Philippe Mathieu-Daudé
2020-12-06 23:39   ` Philippe Mathieu-Daudé
2020-12-08 21:47   ` Richard Henderson
2020-12-08 21:47     ` Richard Henderson
2020-12-06 23:39 ` [PATCH 03/19] target/mips: Remove unused headers from fpu_helper.c Philippe Mathieu-Daudé
2020-12-06 23:39   ` Philippe Mathieu-Daudé
2020-12-08 21:49   ` Richard Henderson
2020-12-08 21:49     ` Richard Henderson
2020-12-06 23:39 ` [PATCH 04/19] target/mips: Remove unused headers from cp0_helper.c Philippe Mathieu-Daudé
2020-12-06 23:39   ` Philippe Mathieu-Daudé
2020-12-08 21:50   ` Richard Henderson
2020-12-08 21:50     ` Richard Henderson
2020-12-06 23:39 ` [PATCH 05/19] target/mips: Remove unused headers from op_helper.c Philippe Mathieu-Daudé
2020-12-06 23:39   ` Philippe Mathieu-Daudé
2020-12-08 21:50   ` Richard Henderson
2020-12-08 21:50     ` Richard Henderson
2020-12-06 23:39 ` [PATCH 06/19] target/mips: Remove unused headers from kvm.c Philippe Mathieu-Daudé
2020-12-06 23:39   ` Philippe Mathieu-Daudé
2020-12-08 21:50   ` Richard Henderson
2020-12-08 21:50     ` Richard Henderson
2020-12-06 23:39 ` [PATCH 07/19] target/mips: Include "exec/memattrs.h" in 'internal.h' Philippe Mathieu-Daudé
2020-12-06 23:39   ` Philippe Mathieu-Daudé
2020-12-08 21:51   ` Richard Henderson
2020-12-08 21:51     ` Richard Henderson
2020-12-06 23:39 ` [PATCH 08/19] target/mips: Extract cpu_supports*/cpu_set* translate.c Philippe Mathieu-Daudé
2020-12-06 23:39   ` Philippe Mathieu-Daudé
2020-12-08 21:53   ` Richard Henderson
2020-12-08 21:53     ` Richard Henderson
2020-12-06 23:39 ` [PATCH 09/19] target/mips: Move mips_cpu_add_definition() from helper.c to cpu.c Philippe Mathieu-Daudé
2020-12-06 23:39   ` Philippe Mathieu-Daudé
2020-12-08 21:55   ` Richard Henderson
2020-12-08 21:55     ` Richard Henderson
2020-12-06 23:39 ` [PATCH 10/19] target/mips: Add !CONFIG_USER_ONLY comment after #endif Philippe Mathieu-Daudé
2020-12-06 23:39   ` Philippe Mathieu-Daudé
2020-12-08 21:59   ` Richard Henderson
2020-12-08 21:59     ` Richard Henderson
2020-12-06 23:39 ` [PATCH 11/19] target/mips: Extract common helpers from helper.c to common_helper.c Philippe Mathieu-Daudé
2020-12-06 23:39   ` Philippe Mathieu-Daudé
2020-12-08 22:06   ` Richard Henderson
2020-12-08 22:06     ` Richard Henderson
2020-12-14 14:23     ` Philippe Mathieu-Daudé
2020-12-14 14:51     ` 罗勇刚(Yonggang Luo)
2020-12-14 14:54       ` Philippe Mathieu-Daudé
2020-12-06 23:39 ` [PATCH 12/19] target/mips: Rename helper.c as tlb_helper.c Philippe Mathieu-Daudé
2020-12-06 23:39   ` Philippe Mathieu-Daudé
2020-12-08 22:09   ` Richard Henderson
2020-12-08 22:09     ` Richard Henderson
2020-12-06 23:39 ` Philippe Mathieu-Daudé [this message]
2020-12-06 23:39   ` [PATCH 13/19] target/mips: Fix code style for checkpatch.pl Philippe Mathieu-Daudé
2020-12-08 22:11   ` Richard Henderson
2020-12-08 22:11     ` Richard Henderson
2020-12-06 23:39 ` [PATCH 14/19] target/mips: Move mmu_init() functions to tlb_helper.c Philippe Mathieu-Daudé
2020-12-06 23:39   ` Philippe Mathieu-Daudé
2020-12-08 22:19   ` Richard Henderson
2020-12-08 22:19     ` Richard Henderson
2020-12-06 23:39 ` [PATCH 15/19] target/mips: Move cpu definitions, reset() and realize() to cpu.c Philippe Mathieu-Daudé
2020-12-06 23:39   ` Philippe Mathieu-Daudé
2020-12-08 22:27   ` Richard Henderson
2020-12-08 22:27     ` Richard Henderson
2020-12-06 23:39 ` [PATCH 16/19] target/mips: Inline cpu_mips_realize_env() in mips_cpu_realizefn() Philippe Mathieu-Daudé
2020-12-06 23:39   ` Philippe Mathieu-Daudé
2020-12-08 22:27   ` Richard Henderson
2020-12-08 22:27     ` Richard Henderson
2020-12-06 23:39 ` [PATCH 17/19] target/mips: Rename translate_init.c as cpu-defs.c Philippe Mathieu-Daudé
2020-12-06 23:39   ` Philippe Mathieu-Daudé
2020-12-08 22:30   ` Richard Henderson
2020-12-08 22:30     ` Richard Henderson
2020-12-14 14:40     ` Philippe Mathieu-Daudé
2020-12-06 23:39 ` [RFC PATCH 18/19] target/mips: Restrict some TCG specific CPUClass handlers Philippe Mathieu-Daudé
2020-12-06 23:39   ` Philippe Mathieu-Daudé
2020-12-07  7:59   ` Claudio Fontana
2020-12-07  7:59     ` Claudio Fontana
2020-12-07  8:53     ` Claudio Fontana
2020-12-07  8:53       ` Claudio Fontana
2020-12-07  9:07       ` Claudio Fontana
2020-12-07  9:07         ` Claudio Fontana
2020-12-07 11:43         ` Claudio Fontana
2020-12-07 11:43           ` Claudio Fontana
2020-12-07 12:49           ` Philippe Mathieu-Daudé
2020-12-06 23:39 ` [RFC PATCH 19/19] target/mips: Only build TCG code when CONFIG_TCG is set Philippe Mathieu-Daudé
2020-12-06 23:39   ` Philippe Mathieu-Daudé
2020-12-08 22:30   ` Richard Henderson
2020-12-08 22:30     ` Richard Henderson
2020-12-06 23:45 ` [PATCH 00/19] target/mips: Boring code reordering no-reply
2020-12-06 23:45   ` no-reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201206233949.3783184-14-f4bug@amsat.org \
    --to=f4bug@amsat.org \
    --cc=aleksandar.rikalo@syrmia.com \
    --cc=aurelien@aurel32.net \
    --cc=chenhuacai@kernel.org \
    --cc=jiaxun.yang@flygoat.com \
    --cc=kvm@vger.kernel.org \
    --cc=paulburton@kernel.org \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=richard.henderson@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.