qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] Wanted: A better way to implement MIPS unaligned instru


From: Fabrice Bellard
Subject: Re: [Qemu-devel] Wanted: A better way to implement MIPS unaligned instructions
Date: Tue, 17 Jun 2008 23:56:22 +0200
User-agent: Thunderbird 1.5.0.9 (X11/20070212)

Thiemo Seufer wrote:
> Hello All,
> 
> I am currently trying to implement TCG versions of the MIPS [ls][dw][lr]
> set of instructions. I believe I can't use a helper function for
> load/store type instructions. The appended patch uses TCG directly, but
> the resulting translation is excessively complicated. Is there a better
> way to do this?

A simpler solution is to use the same code as before in an helper.
Helpers are perfectly usable in this case provided the cpu state is
saved before calling them.

When the helper solution will work, it will be possible to optimize it
by directly accessing the QEMU TLB cache to do word accesses and to
generate the correct exception.

Fabrice.




reply via email to

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