[Qemu-devel] [PATCH][SPARC] mem_address_not_aligned trap for unaligned PC and load/store

2007-04-01 Thread Aurelien Jarno
On Sun, Apr 01, 2007 at 07:30:40PM +0200, Aurelien Jarno wrote: > Blue Swirl a écrit : > >> 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 nonz

Re: [Qemu-devel] [PATCH][SPARC] mem_address_not_aligned trap for unaligned PC

2007-04-01 Thread Aurelien Jarno
Blue Swirl a écrit : >> 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 fo

[Qemu-devel] [PATCH][SPARC] mem_address_not_aligned trap for unaligned PC

2007-04-01 Thread Aurelien Jarno
Hi all, 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. The patch below implements that. Bye, Aurelien Index: target-sparc/cpu.h ===