qemu-devel
[Top][All Lists]
Advanced

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

RE: [PATCH v4 24/33] target/nios2: Introduce shadow register sets


From: Amir Gonnen
Subject: RE: [PATCH v4 24/33] target/nios2: Introduce shadow register sets
Date: Wed, 9 Mar 2022 14:02:14 +0000

Hi Richard,

How does "cpu_crs_R" work?
In your version you hold a pointer to the current register set instead of 
copying registers back and forth like I did, which makes sense.

But how does TCG know which set to refer to when it generates code?
It looks like it's always accessing the same cpu_crs_R, so how does it relate 
to the correct register set on "shadow_regs"?

In fact, I imagined it would be necessary to change "cpu_get_tb_cpu_state" and 
set "cs_base" or "flags" to STATUS.CRS such that different code would be 
generated for each shadow instance. Otherwise, each gpr access would be 
indirect. I'm probably missing something here.

Thanks,
Amir




reply via email to

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