Re: [Qemu-devel] [PATCH] RFC: linux-user-i386: crash on cpuid

2016-09-16 Thread Eduardo Habkost
On Fri, Sep 16, 2016 at 11:06:34AM -0400, Marc-André Lureau wrote: > Hi > > - Original Message - > > > > > > -#ifndef CONFIG_USER_ONLY > > > +#ifdef CONFIG_USER_ONLY > > > +cs->nr_cores = smp_cores; > > > +cs->nr_threads = smp_threads; > > > +#else > > > > On CONFIG_USER_ONLY, s

Re: [Qemu-devel] [PATCH] RFC: linux-user-i386: crash on cpuid

2016-09-16 Thread Marc-André Lureau
Hi - Original Message - > > > > -#ifndef CONFIG_USER_ONLY > > +#ifdef CONFIG_USER_ONLY > > +cs->nr_cores = smp_cores; > > +cs->nr_threads = smp_threads; > > +#else > > On CONFIG_USER_ONLY, smp_cores and smp_threads are defined as: > > /* *-user doesn't have configurable SMP t

Re: [Qemu-devel] [PATCH] RFC: linux-user-i386: crash on cpuid

2016-09-16 Thread Marc-André Lureau
Hi - Original Message - > On Fri, Sep 16, 2016 at 06:41:32PM +0400, Marc-André Lureau wrote: > > Running cpuid instructions with a simple run like: > > i386-linux-user/qemu-i386 tests/tcg/sha1-i386 > > > > Results in the following assert: > > #0 0x764246f5 in raise () from /lib6

Re: [Qemu-devel] [PATCH] RFC: linux-user-i386: crash on cpuid

2016-09-16 Thread Eduardo Habkost
On Fri, Sep 16, 2016 at 06:41:32PM +0400, Marc-André Lureau wrote: > Running cpuid instructions with a simple run like: > i386-linux-user/qemu-i386 tests/tcg/sha1-i386 > > Results in the following assert: > #0 0x764246f5 in raise () from /lib64/libc.so.6 > #1 0x764262fa in abor

[Qemu-devel] [PATCH] RFC: linux-user-i386: crash on cpuid

2016-09-16 Thread Marc-André Lureau
Running cpuid instructions with a simple run like: i386-linux-user/qemu-i386 tests/tcg/sha1-i386 Results in the following assert: #0 0x764246f5 in raise () from /lib64/libc.so.6 #1 0x764262fa in abort () from /lib64/libc.so.6 #2 0x77937ec5 in g_assertion_message () fr