On Thu, Dec 16, 2004 at 01:37:53AM +0000, Johannes Schindelin wrote:
Hi,
On Wed, 15 Dec 2004, Jim C. Brown wrote:
This is due to a change in the way gcc compiles code ... 3.4.0 may work,
but later versions will cause functions to return prematurely (due to the way
qemu handles translated blocks). I suggested that a fix for this would be to
use function pointer calls instead of directly chaining machine code, but
apparently this is too slow to make qemu usable.
The Forth way ;-)
...
How about instead post-processing the .s, replacing the rets with jumps
to the end of the function? Of course this part would be architecture
dependant (different assembler syntax), but other parts of qemu
are that as well, right?