From: Blue Swirl <blauwirbel@gmail.com>
To: qemu-devel <qemu-devel@nongnu.org>
Subject: [Qemu-devel] [PATCH 7/9] exec.h: fix coding style of the area to be moved
Date: Sun, 22 May 2011 14:18:05 +0300 [thread overview]
Message-ID: <BANLkTik_kT5GsWiyR0vPYKtBACjVNL9xuA@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3597 bytes --]
Before the next patch, fix coding style of the areas affected.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
---
target-alpha/exec.h | 2 +-
target-arm/exec.h | 4 ++--
target-cris/exec.h | 2 +-
target-m68k/exec.h | 2 +-
target-microblaze/exec.h | 2 +-
target-ppc/exec.h | 2 +-
target-sh4/exec.h | 2 +-
7 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/target-alpha/exec.h b/target-alpha/exec.h
index 6ae96d1..26c3a3a 100644
--- a/target-alpha/exec.h
+++ b/target-alpha/exec.h
@@ -39,7 +39,7 @@ register struct CPUAlphaState *env asm(AREG0);
static inline int cpu_has_work(CPUState *env)
{
- return (env->interrupt_request & CPU_INTERRUPT_HARD);
+ return env->interrupt_request & CPU_INTERRUPT_HARD;
}
static inline void cpu_pc_from_tb(CPUState *env, TranslationBlock *tb)
diff --git a/target-arm/exec.h b/target-arm/exec.h
index 44e1b55..ef497d8 100644
--- a/target-arm/exec.h
+++ b/target-arm/exec.h
@@ -28,8 +28,8 @@ register struct CPUARMState *env asm(AREG0);
static inline int cpu_has_work(CPUState *env)
{
- return (env->interrupt_request &
- (CPU_INTERRUPT_FIQ | CPU_INTERRUPT_HARD | CPU_INTERRUPT_EXITTB));
+ return env->interrupt_request &
+ (CPU_INTERRUPT_FIQ | CPU_INTERRUPT_HARD | CPU_INTERRUPT_EXITTB);
}
#if !defined(CONFIG_USER_ONLY)
diff --git a/target-cris/exec.h b/target-cris/exec.h
index 2d5d297..491f17c 100644
--- a/target-cris/exec.h
+++ b/target-cris/exec.h
@@ -30,7 +30,7 @@ register struct CPUCRISState *env asm(AREG0);
static inline int cpu_has_work(CPUState *env)
{
- return (env->interrupt_request & (CPU_INTERRUPT_HARD | CPU_INTERRUPT_NMI));
+ return env->interrupt_request & (CPU_INTERRUPT_HARD | CPU_INTERRUPT_NMI);
}
static inline void cpu_pc_from_tb(CPUState *env, TranslationBlock *tb)
diff --git a/target-m68k/exec.h b/target-m68k/exec.h
index 91daa6b..f63e849 100644
--- a/target-m68k/exec.h
+++ b/target-m68k/exec.h
@@ -30,7 +30,7 @@ register struct CPUM68KState *env asm(AREG0);
static inline int cpu_has_work(CPUState *env)
{
- return (env->interrupt_request & (CPU_INTERRUPT_HARD));
+ return env->interrupt_request & (CPU_INTERRUPT_HARD);
}
static inline void cpu_pc_from_tb(CPUState *env, TranslationBlock *tb)
diff --git a/target-microblaze/exec.h b/target-microblaze/exec.h
index 1efff30..af102d6 100644
--- a/target-microblaze/exec.h
+++ b/target-microblaze/exec.h
@@ -29,7 +29,7 @@ register struct CPUMBState *env asm(AREG0);
static inline int cpu_has_work(CPUState *env)
{
- return (env->interrupt_request & (CPU_INTERRUPT_HARD | CPU_INTERRUPT_NMI));
+ return env->interrupt_request & (CPU_INTERRUPT_HARD | CPU_INTERRUPT_NMI);
}
static inline void cpu_pc_from_tb(CPUState *env, TranslationBlock *tb)
diff --git a/target-ppc/exec.h b/target-ppc/exec.h
index f87847a..fbc0a06 100644
--- a/target-ppc/exec.h
+++ b/target-ppc/exec.h
@@ -34,7 +34,7 @@ register struct CPUPPCState *env asm(AREG0);
static inline int cpu_has_work(CPUState *env)
{
- return (msr_ee && (env->interrupt_request & CPU_INTERRUPT_HARD));
+ return msr_ee && (env->interrupt_request & CPU_INTERRUPT_HARD);
}
diff --git a/target-sh4/exec.h b/target-sh4/exec.h
index 9f1c1f6..e52838c 100644
--- a/target-sh4/exec.h
+++ b/target-sh4/exec.h
@@ -29,7 +29,7 @@ register struct CPUSH4State *env asm(AREG0);
static inline int cpu_has_work(CPUState *env)
{
- return (env->interrupt_request & CPU_INTERRUPT_HARD);
+ return env->interrupt_request & CPU_INTERRUPT_HARD;
}
#ifndef CONFIG_USER_ONLY
--
1.6.2.4
[-- Attachment #2: 0007-exec.h-fix-coding-style-of-the-area-to-be-moved.patch --]
[-- Type: text/x-diff, Size: 4107 bytes --]
From 5a9a4488f189c97314ad81061499691214034493 Mon Sep 17 00:00:00 2001
Message-Id: <5a9a4488f189c97314ad81061499691214034493.1306062376.git.blauwirbel@gmail.com>
In-Reply-To: <c887cc861a8a531b636c0acae1e054a3861ad15a.1306062376.git.blauwirbel@gmail.com>
References: <c887cc861a8a531b636c0acae1e054a3861ad15a.1306062376.git.blauwirbel@gmail.com>
From: Blue Swirl <blauwirbel@gmail.com>
Date: Sat, 21 May 2011 12:16:05 +0000
Subject: [PATCH 7/9] exec.h: fix coding style of the area to be moved
Before the next patch, fix coding style of the areas affected.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
---
target-alpha/exec.h | 2 +-
target-arm/exec.h | 4 ++--
target-cris/exec.h | 2 +-
target-m68k/exec.h | 2 +-
target-microblaze/exec.h | 2 +-
target-ppc/exec.h | 2 +-
target-sh4/exec.h | 2 +-
7 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/target-alpha/exec.h b/target-alpha/exec.h
index 6ae96d1..26c3a3a 100644
--- a/target-alpha/exec.h
+++ b/target-alpha/exec.h
@@ -39,7 +39,7 @@ register struct CPUAlphaState *env asm(AREG0);
static inline int cpu_has_work(CPUState *env)
{
- return (env->interrupt_request & CPU_INTERRUPT_HARD);
+ return env->interrupt_request & CPU_INTERRUPT_HARD;
}
static inline void cpu_pc_from_tb(CPUState *env, TranslationBlock *tb)
diff --git a/target-arm/exec.h b/target-arm/exec.h
index 44e1b55..ef497d8 100644
--- a/target-arm/exec.h
+++ b/target-arm/exec.h
@@ -28,8 +28,8 @@ register struct CPUARMState *env asm(AREG0);
static inline int cpu_has_work(CPUState *env)
{
- return (env->interrupt_request &
- (CPU_INTERRUPT_FIQ | CPU_INTERRUPT_HARD | CPU_INTERRUPT_EXITTB));
+ return env->interrupt_request &
+ (CPU_INTERRUPT_FIQ | CPU_INTERRUPT_HARD | CPU_INTERRUPT_EXITTB);
}
#if !defined(CONFIG_USER_ONLY)
diff --git a/target-cris/exec.h b/target-cris/exec.h
index 2d5d297..491f17c 100644
--- a/target-cris/exec.h
+++ b/target-cris/exec.h
@@ -30,7 +30,7 @@ register struct CPUCRISState *env asm(AREG0);
static inline int cpu_has_work(CPUState *env)
{
- return (env->interrupt_request & (CPU_INTERRUPT_HARD | CPU_INTERRUPT_NMI));
+ return env->interrupt_request & (CPU_INTERRUPT_HARD | CPU_INTERRUPT_NMI);
}
static inline void cpu_pc_from_tb(CPUState *env, TranslationBlock *tb)
diff --git a/target-m68k/exec.h b/target-m68k/exec.h
index 91daa6b..f63e849 100644
--- a/target-m68k/exec.h
+++ b/target-m68k/exec.h
@@ -30,7 +30,7 @@ register struct CPUM68KState *env asm(AREG0);
static inline int cpu_has_work(CPUState *env)
{
- return (env->interrupt_request & (CPU_INTERRUPT_HARD));
+ return env->interrupt_request & (CPU_INTERRUPT_HARD);
}
static inline void cpu_pc_from_tb(CPUState *env, TranslationBlock *tb)
diff --git a/target-microblaze/exec.h b/target-microblaze/exec.h
index 1efff30..af102d6 100644
--- a/target-microblaze/exec.h
+++ b/target-microblaze/exec.h
@@ -29,7 +29,7 @@ register struct CPUMBState *env asm(AREG0);
static inline int cpu_has_work(CPUState *env)
{
- return (env->interrupt_request & (CPU_INTERRUPT_HARD | CPU_INTERRUPT_NMI));
+ return env->interrupt_request & (CPU_INTERRUPT_HARD | CPU_INTERRUPT_NMI);
}
static inline void cpu_pc_from_tb(CPUState *env, TranslationBlock *tb)
diff --git a/target-ppc/exec.h b/target-ppc/exec.h
index f87847a..fbc0a06 100644
--- a/target-ppc/exec.h
+++ b/target-ppc/exec.h
@@ -34,7 +34,7 @@ register struct CPUPPCState *env asm(AREG0);
static inline int cpu_has_work(CPUState *env)
{
- return (msr_ee && (env->interrupt_request & CPU_INTERRUPT_HARD));
+ return msr_ee && (env->interrupt_request & CPU_INTERRUPT_HARD);
}
diff --git a/target-sh4/exec.h b/target-sh4/exec.h
index 9f1c1f6..e52838c 100644
--- a/target-sh4/exec.h
+++ b/target-sh4/exec.h
@@ -29,7 +29,7 @@ register struct CPUSH4State *env asm(AREG0);
static inline int cpu_has_work(CPUState *env)
{
- return (env->interrupt_request & CPU_INTERRUPT_HARD);
+ return env->interrupt_request & CPU_INTERRUPT_HARD;
}
#ifndef CONFIG_USER_ONLY
--
1.7.2.5
next reply other threads:[~2011-05-22 11:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-22 11:18 Blue Swirl [this message]
2011-05-22 11:30 ` [Qemu-devel] [PATCH 7/9] exec.h: fix coding style of the area to be moved Jan Kiszka
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=BANLkTik_kT5GsWiyR0vPYKtBACjVNL9xuA@mail.gmail.com \
--to=blauwirbel@gmail.com \
--cc=qemu-devel@nongnu.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).