qemu-discuss
[Top][All Lists]
Advanced

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

Re: How the cpu_R in DisasContext is associated with register of CPUArch


From: Alex Bennée
Subject: Re: How the cpu_R in DisasContext is associated with register of CPUArchState
Date: Mon, 06 Jul 2020 10:34:40 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

沈梦姣 <shen.mengjiao3-mVuRI66OGLPQT0dZR+AlfA@public.gmane.org> writes:

>> 
>> Because in translate stage when write cpu register by guest code, it
>> operates totally on cpu_R of DisasContext, how to reflect it to
>> register of CPUArchState?

cpu_R holds TCG references to the value in CPUArchState (see
tcg_global_mem_new_i32). You cannot access the run time values during
translation but obviously the translator needs to know what the offset
into CPUArchState is so we can load/save the values to the right place.


>> 
>> thanks a lot!
>
>

-- 
Alex Bennée



reply via email to

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