qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [v2 PATCH] target-mips: implement UserLocal Register


From: Richard Henderson
Subject: Re: [Qemu-devel] [v2 PATCH] target-mips: implement UserLocal Register
Date: Tue, 27 May 2014 10:20:36 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

On 05/27/2014 09:46 AM, Petar Jovanovic wrote:
> Can you please add more thoughts on this? Within the same translation block,
> we can have an instruction that alters HWrena (mtc0) and rdwhr instruction 
> that
> will behave differently based on content of HWrena.

The normal way to handle this is to end the translation block whenever we issue
an instruction that could (unpredictably) affect how the TB is translated.

In the mips translator, this is done via "ctx->bstate = BS_STOP".
There are plenty of examples within gen_mtc0 already.


r~



reply via email to

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