qemu-devel
[Top][All Lists]
Advanced

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

RE: [Qemu-devel] [PATCH][SPARC] mem_address_not_aligned trap forunaligne


From: Blue Swirl
Subject: RE: [Qemu-devel] [PATCH][SPARC] mem_address_not_aligned trap forunaligned PC
Date: Sun, 01 Apr 2007 19:15:14 +0200

According to the SPARCv8 and SPARCv9 manuals, the jmpl, rett and return
instructions should generate a mem_address_not_aligned trap if either
of the low-order two bits of the target address is nonzero.

This is true, but in that case alignment should be enforced for loads ands stores as well. The checks also incur a performance penalty for little advantage. Maybe the checks should be enabled only with a compile/run-time option.

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/





reply via email to

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