|
From: | Fabrice Bellard |
Subject: | [Qemu-devel] Re: [PATCH, RFC, WIP] TCG for Qemu target Sparc32/64 |
Date: | Sat, 23 Feb 2008 19:48:38 +0100 |
User-agent: | Thunderbird 1.5.0.9 (X11/20070212) |
> [...] >> Another point is that you should define TCG globals for each SPARC GPR. >> It was not done for i386 because I feared performance regressions when >> accessing to 16 bit or 8 bit sub-registers. On SPARC you do not have >> this issue. > > Nice idea. Would this also work for windowed registers? Yes, provided you use a fixed register to store regwptr. Then you can define the windowed registers as globals using this register as base. The real problem is to save and restore this register in cpu_exec() and in all the places where the regwptr CPU state field is accessed directly. TCG will handle these problems generically soon, but before it does it you can implement it "by hand". Regards, Fabrice.
[Prev in Thread] | Current Thread | [Next in Thread] |