[PATCH 1/3] nds32: Fix instruction simulator bug for unaligned access handler.

2018-10-18 Thread Nickhu
When emulating the 16 bits instructions, the mapping of general purpose registers is not the same as 32 bits instructions. Example: 'LWI450 r16, [r15]' 16-bit instruction will be decoded as '1011010110001110', the target register field is decode as index=12.

[PATCH 1/3] nds32: Fix instruction simulator bug for unaligned access handler.

2018-10-18 Thread Nickhu
When emulating the 16 bits instructions, the mapping of general purpose registers is not the same as 32 bits instructions. Example: 'LWI450 r16, [r15]' 16-bit instruction will be decoded as '1011010110001110', the target register field is decode as index=12.