qemu-discuss
[Top][All Lists]
Advanced

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

Re: [Qemu-discuss] QEMU registers: 32 vs 64 bit


From: Peter Maydell
Subject: Re: [Qemu-discuss] QEMU registers: 32 vs 64 bit
Date: Wed, 19 Sep 2018 08:36:11 -0700

On 19 September 2018 at 06:22, Szőts Ákos <address@hidden> wrote:
> Dear list members,
>
> Sometimes when my virtual machine crashes because of an invalid memory
> access the registers QEMU prints out (with "-d") use 32-bit
> "notation", like:
>
> qemu: fatal: Trying to execute code outside RAM or ROM at 0x00000000be76ff00
> EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000663
> ESI=00000000 EDI=000346de EBP=00000000 ESP=fffffff8
> EIP=be77ff00 EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=0
> [...]
>
> But when in that very same machine I request a print out of the
> current register state I get 64 bit ones:
>
> RAX=0000000000000001 RBX=ffff8b83bc339cc0 RCX=0000000000000000
> RDX=0000000000000000

QEMU prints the CPU state in the 32 bit format if the CPU is
currently in 32-bit mode, and in 64 bit format if it is currently
in 64-bit mode. So it simply depends what the CPU happens to be
doing at any given time.

thanks
-- PMM



reply via email to

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