binutils-gdb/sim/msp430
Jozef Lawrynowicz b7dcc42dfd MSP430: Fix simulator execution of RRUX instruction
The MSP430X RRUX instruction (unsigned right shift) is synthesized as
the RRC (rotate right through carry) instruction, but with the ZC
(zero carry) bit of the opcode extention word set.

Ensure the carry flag is ignored when the ZC bit is set.

sim/msp430/ChangeLog:

2020-01-22  Jozef Lawrynowicz  <jozef.l@mittosystems.com>

	* msp430-sim.c (msp430_step_once): Ignore the carry flag when executing
	an RRC instruction, if the ZC bit of the extension word is set.

sim/testsuite/sim/msp430/ChangeLog:

2020-01-22  Jozef Lawrynowicz  <jozef.l@mittosystems.com>

	* rrux.s: New test.
2020-01-22 21:52:29 +00:00
..
aclocal.m4 Bump to autoconf 2.69 and automake 1.15.1 2018-06-19 16:55:06 -04:00
ChangeLog MSP430: Fix simulator execution of RRUX instruction 2020-01-22 21:52:29 +00:00
config.in Bump to autoconf 2.69 and automake 1.15.1 2018-06-19 16:55:06 -04:00
configure Bump to autoconf 2.69 and automake 1.15.1 2018-06-19 16:55:06 -04:00
configure.ac Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
Makefile.in Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
msp430-sim.c MSP430: Fix simulator execution of RRUX instruction 2020-01-22 21:52:29 +00:00
msp430-sim.h Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
sim-main.h Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00