binutils-gdb/sim/aarch64
Carlo Bramini 69b1ffdb01 sim/aarch64: Fix register ordering bug in blr (PR sim/25318)
A comment in the implementation of blr says:

  /* The pseudo code in the spec says we update LR before fetching.
     the value from the rn.  */

With 'rn' being the register holding the destination address.

This may have been true at one point, but the ISA manual now clearly
shows the destination register being read before the link register is
written.

This commit updates the implementation of blr to match.

sim/aarch64/ChangeLog:

	PR sim/25318
	* simulator.c (blr): Read destination register before calling
	aarch64_save_LR.

Change-Id: Icb1c556064e3d9c807ac28440475caa205ab1064
2020-02-06 22:50:26 +00:00
..
aclocal.m4
ChangeLog sim/aarch64: Fix register ordering bug in blr (PR sim/25318) 2020-02-06 22:50:26 +00:00
config.in
configure
configure.ac Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
cpustate.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
cpustate.h Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
decode.h Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
interp.c 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
memory.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
memory.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
simulator.c sim/aarch64: Fix register ordering bug in blr (PR sim/25318) 2020-02-06 22:50:26 +00:00
simulator.h Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00