From: "Andreas Färber" <afaerber@suse.de>
To: Leon Alrae <leon.alrae@imgtec.com>, qemu-devel@nongnu.org
Cc: riku.voipio@iki.fi, ehabkost@redhat.com, Alexander Graf <agraf@suse.de>
Subject: Re: [Qemu-devel] [PATCH] linux-user: fix broken cpu_copy()
Date: Mon, 23 Mar 2015 14:19:19 +0100 [thread overview]
Message-ID: <551012D7.4040900@suse.de> (raw)
In-Reply-To: <55100EE5.9090404@suse.de>
Am 23.03.2015 um 14:02 schrieb Andreas Färber:
> Am 23.03.2015 um 13:55 schrieb Leon Alrae:
>> New threads always point at the same env which is incorrect and usually leads
Please remember to break after 76 chars. (Look at `git log` output.)
Andreas
>> to a crash.
>>
>> Signed-off-by: Leon Alrae <leon.alrae@imgtec.com>
>> ---
>> Hi,
>>
>> This patch fixes the bug introduced in:
>>
>> commit 2994fd96d986578a342f2342501b4ad30f6d0a85
>> Author: Eduardo Habkost <ehabkost@redhat.com>
>>
>> cpu: Make cpu_init() return QOM CPUState object
>>
>> Regards,
>> Leon
>> ---
>> linux-user/main.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/linux-user/main.c b/linux-user/main.c
>> index 6e446de..04668e8 100644
>> --- a/linux-user/main.c
>> +++ b/linux-user/main.c
>> @@ -3453,7 +3453,7 @@ CPUArchState *cpu_copy(CPUArchState *env)
>> {
>> CPUState *cpu = ENV_GET_CPU(env);
>> CPUState *new_cpu = cpu_init(cpu_model);
>> - CPUArchState *new_env = cpu->env_ptr;
>> + CPUArchState *new_env = new_cpu->env_ptr;
>> CPUBreakpoint *bp;
>> CPUWatchpoint *wp;
>>
>
> Clearly my fault and might explain some breakage in our OBS,
>
> Reviewed-by: Andreas Färber <afaerber@suse.de>
>
> Riku, are you queuing this (-rc1 tomorrow!) or should I take it for a
> CPU pull?
>
> Thanks,
> Andreas
--
SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Felix Imendörffer, Jane Smithard, Jennifer Guild, Dilip Upmanyu,
Graham Norton; HRB 21284 (AG Nürnberg)
next prev parent reply other threads:[~2015-03-23 13:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-23 12:55 [Qemu-devel] [PATCH] linux-user: fix broken cpu_copy() Leon Alrae
2015-03-23 13:02 ` Andreas Färber
2015-03-23 13:19 ` Andreas Färber [this message]
2015-03-23 13:23 ` Riku Voipio
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=551012D7.4040900@suse.de \
--to=afaerber@suse.de \
--cc=agraf@suse.de \
--cc=ehabkost@redhat.com \
--cc=leon.alrae@imgtec.com \
--cc=qemu-devel@nongnu.org \
--cc=riku.voipio@iki.fi \
/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.