[Top][All Lists]

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

Another related question Re: [Qemu-devel] Question about softmmu

From: Ye Wen
Subject: Another related question Re: [Qemu-devel] Question about softmmu
Date: Sun, 7 Nov 2004 16:32:45 -0800
User-agent: Internet Messaging Program (IMP) 3.2.5-cvs

Thanks Olivier.

Another question:
When translating instructions that access PC, e.g. move pc to register,
actually the PC value at translation time is used. This causes a problem
that if the address mapping changes later, this translated basic block
is still using the old PC value. Is it right? How does QEMU deal with it?
Or is it completely impossible?


Quoting olivier cozette <address@hidden>:

> Hello,
> >I'm reading the QEMU code. I have a question haunting my mind for some time
> >about tb flushing due to MMU change. Generally, whenever the page table has
> >any change, we should flush the tb hash table. But I only see in the code
> that
> >when CR3 is changed, the tb_flush is called. What if the CR3 does not
> change,
> >but some level 2 page table in the memory change, should the tb also be
> >flushed?
> In this case, in the real processor (see Intel Manual), the processor TLBs
> (it's
> like the Qemu tb) are not flushed, so Qemu act as a real processor.
> Olivier
> _______________________________________________
> Qemu-devel mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/qemu-devel

Ye Wen

reply via email to

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