Broken SH2a patches
Andrew STUBBS
andrew.stubbs@st.com
Tue Jan 11 18:01:00 GMT 2005
Hi Nick,
I have found another problem with your patch.
Your patch has:
#define arch_sh2a_or_sh3e (arch_sh2a_sh4_base)
#define arch_sh2a_or_sh4 (arch_sh2a_sh4_base
|arch_sh_dp_fpu)
Which should be:
#define arch_sh2a_or_sh3e (arch_sh2a_sh4_base|arch_sh_no_mmu
|arch_sh_sp_fpu)
#define arch_sh2a_or_sh4 (arch_sh2a_sh4_base|arch_sh_no_mmu
|arch_sh_dp_fpu)
Otherwise the -isa=sh2a-or-sh3e and -isa=sh2a-or-sh4 options cause the
assembler to reject all instructions, which isn't helpful.
I am developing a new script for the testsuite which will hopefully point
all these issues out in future, should anybody make any broken changes. It
hasn't found any issues with your patch other than the ones I have already
pointed out (although I have had to modifiy sh-opc.h a little to make it
work, so maybe I am not testing the same thing).
Interestingly, one thing my script has exposed is that mul.l is defined
twice! Once for sh2 and once for sh1, which is obviously wrong.
--
Andrew Stubbs
andrew.stubbs@st.com
andrew.stubbs@superh.com
More information about the Binutils
mailing list