From: "Andreas Färber" <afaerber@suse.de>
To: Igor Mammedov <imammedo@redhat.com>
Cc: Eduardo Habkost <ehabkost@redhat.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH qom-cpu-next 1/2] target-i386/cpu.c: Coding style fixes
Date: Mon, 15 Apr 2013 15:18:19 +0200 [thread overview]
Message-ID: <516BFE1B.2030204@suse.de> (raw)
In-Reply-To: <20130415102743.3d3ed016@nial.usersys.redhat.com>
Am 15.04.2013 10:27, schrieb Igor Mammedov:
> On Thu, 11 Apr 2013 17:07:23 -0300
> Eduardo Habkost <ehabkost@redhat.com> wrote:
>
>> * Add braces to 'if' statements;
>> * Remove last TAB character from the source.
>>
>> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
>> ---
>> target-i386/cpu.c | 7 ++++---
>> 1 file changed, 4 insertions(+), 3 deletions(-)
>>
>> diff --git a/target-i386/cpu.c b/target-i386/cpu.c
>> index f1ccc72..c2e02fe 100644
>> --- a/target-i386/cpu.c
>> +++ b/target-i386/cpu.c
>> @@ -1870,12 +1870,13 @@ void cpu_x86_cpuid(CPUX86State *env, uint32_t
>> index, uint32_t count, if (env->cpuid_ext2_features & CPUID_EXT2_LM) {
>> /* 64 bit processor */
>> /* XXX: The physical address space is limited to 42 bits in exec.c. */
>> - *eax = 0x00003028; /* 48 bits virtual, 40 bits physical
>> */
>> + *eax = 0x00003028; /* 48 bits virtual, 40 bits physical */
> ^^ 2 spaces when in other places only one
>
>> } else {
>> - if (env->cpuid_features & CPUID_PSE36)
>> + if (env->cpuid_features & CPUID_PSE36) {
>> *eax = 0x00000024; /* 36 bits physical */
>> - else
>> + } else {
>> *eax = 0x00000020; /* 32 bits physical */
>> + }
>> }
>> *ebx = 0;
>> *ecx = 0;
>
> with fix above Reviewed-By: Igor Mammedov <imammedo@redhat.com>
Thanks, applied to qom-cpu (with suggested change to spare resends):
https://github.com/afaerber/qemu-cpu/commits/qom-cpu
Andreas
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
next prev parent reply other threads:[~2013-04-15 13:18 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-11 20:07 [Qemu-devel] [PATCH qom-cpu-next 0/2] replace cpuid_*features fields with a featue word array (v7) Eduardo Habkost
2013-04-11 20:07 ` [Qemu-devel] [PATCH qom-cpu-next 1/2] target-i386/cpu.c: Coding style fixes Eduardo Habkost
2013-04-15 8:27 ` Igor Mammedov
2013-04-15 13:18 ` Andreas Färber [this message]
2013-04-11 20:07 ` [Qemu-devel] [PATCH qom-cpu-next 2/2] target-i386: Replace cpuid_*features fields with a feature word array Eduardo Habkost
2013-04-15 8:50 ` Igor Mammedov
2013-04-15 13:40 ` Eduardo Habkost
2013-04-15 14:40 ` Igor Mammedov
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=516BFE1B.2030204@suse.de \
--to=afaerber@suse.de \
--cc=ehabkost@redhat.com \
--cc=imammedo@redhat.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 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.