qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH][MIPS] Fix [ls][wd][lr] instructions


From: Fabrice Bellard
Subject: Re: [Qemu-devel] [PATCH][MIPS] Fix [ls][wd][lr] instructions
Date: Wed, 26 Sep 2007 11:52:33 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050922 Fedora/1.7.12-1.3.1

Aurelien Jarno wrote:
Hi,

As written in the MIPS TODO file, the lwl, lwr, ldl, ldr, swl, swr,
sdl and sdr instructions are not correctly implemented. In case of exception the BadVAddr register gets the aligned address instead of the
unaligned original address.

In addition to that, the store instructions are generating the wrong
exception, AdEl instead of AdEs, because the current implementation first do a load.

The patch below fixes that by accessing the bytes one by one, starting
by the unaligned original address.
> [...]

It would be a lot more efficient to add specific code in the MIPS exception handling.

Fabrice.




reply via email to

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