|
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 theunaligned original address. In addition to that, the store instructions are generating the wrongexception, 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.
[Prev in Thread] | Current Thread | [Next in Thread] |