Re: Simulator testing for sh and sh64

Kevin Buettner
2012-02-23T22:53:15Z

On Thu, 23 Feb 2012 20:49:50 +0100
Thomas Schwinge <thomas@codesourcery.com> wrote:

> I did, but it's turning into a rat's nest -- sh64-tdep needs several
> years of catch-up, as it seems. The SIGILL issue that I briefly
> described is what Kevin (hello, hello!) :-) fixed for MIPS in
> 486ee7f3437358941f0762ace2550170ef474de1,
> <http://sourceware.org/ml/gdb-patches/2010-12/msg00202.html>; basically
> the issue is that setting PC's bit 0 in sh64_elf_make_msymbol_special for
> ISA32 (SHmedia) code will confuse GDB's msymbol machinery, resulting
> first in a 1-byte offset, which is later ``fixed'' into the 2-byte offset
> that I mentioned. And patching a 4-byte breakpoint instruction into the
> middle of two 4-byte instructions is very likely to cause a SIGILL.

For what it's worth, I used arm as a model when I made those MIPS
changes. I think I referenced one other architecture too, but I
don't recall what it was.

Kevin