Re: [SH] Cleanup endianness macros

2013-10-27 Thread Kaz Kojima
Oleg Endo wrote: > The attached patch adds a new macro TARGET_BIG_ENDIAN. I think it's a > bit easier to read than !TARGET_LITTLE_ENDIAN. Moreover, some not so > obvious looking uses of TARGET_LITTLE_ENDIAN for selecting MSW and LSW > register offsets are clarified by using new macros SH_REG_MSW

[SH] Cleanup endianness macros

2013-10-26 Thread Oleg Endo
Hello, The attached patch adds a new macro TARGET_BIG_ENDIAN. I think it's a bit easier to read than !TARGET_LITTLE_ENDIAN. Moreover, some not so obvious looking uses of TARGET_LITTLE_ENDIAN for selecting MSW and LSW register offsets are clarified by using new macros SH_REG_MSW_OFFSET and SH_REG