qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Can't switch to 64bit mode at boot, how to debug?


From: Goswin von Brederlow
Subject: Re: [Qemu-devel] Can't switch to 64bit mode at boot, how to debug?
Date: Sat, 17 Nov 2012 22:55:58 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

On Sat, Nov 17, 2012 at 11:18:03PM +0300, Max Filippov wrote:
> On Sat, Nov 17, 2012 at 11:58 PM, Max Filippov <address@hidden> wrote:
> > On Sat, Nov 17, 2012 at 9:50 PM, Goswin von Brederlow <address@hidden> 
> > wrote:
> >>         /* Enable PAE */
> >>         movl    %cr4, %eax
> >>         btsl    $5, %eax
> >>         movl    %eax, %cr4
> >
> > Interestingly with the current HEAD the code disappears after this 
> > instruction:
> 
> ...only from gdb output. xp in qemu monitor still works, looks like
> the issue here
> is with code access for gdb.
> 
> Otherwise it works for me both with the current HEAD, and with v1.1.0.
> I built your kernel like this:
> 
> gcc -I. -m32 test.S -nodefaultlibs -nostartfiles -Wl,-N -Wl,-Ttext
> -Wl,100000 -Wl,--build-id=none -o test
> 
> -- 
> Thanks.
> -- Max
> 

Args, the problem was that I used "qemu", which currently links to
qemu-system-i386 instead of "qemu-system-x86_64". A some point in the last
year the alternative setting must have reverted from x86_64 to the default
of i386.

MfG
        Goswin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]