openocd/src
Antonio Borneo b5e015357a mips_mips64: fix minor host endianness bug
Commit 80f1a92bd7 ("mips64: Add generic mips64 target support")
adds a log of the target's program counter in function
mips_mips64_debug_entry() by directly casting the little-endian
buffer in pc->value.
This is going to print an incorrect value on big-endian hosts.

Use the function buf_get_u64() to return the register value.

Not tested on real HW. Issue identified with GCC compiler flag
'-Wcast-align=strict' after change http://openocd.zylin.com/5937/
("target/register: use an array of uint8_t for register's value").

Change-Id: Icbda2b54a03fdec287c804e623f5db4252f9cd2a
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Fixes: 80f1a92bd7 ("mips64: Add generic mips64 target support")
Reviewed-on: http://openocd.zylin.com/5944
Tested-by: jenkins
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
2020-12-05 23:18:33 +00:00
..
flash flash/nor/stm32f1x: fix error message 2020-11-15 22:10:02 +00:00
helper jep106: Add new IDs from JEDEC 2020-12-05 23:17:48 +00:00
jtag jtag/drivers/cmsis_dap: fix build with gcc 10.1.0 2020-11-15 21:38:29 +00:00
pld openocd: use proper format with uint32_t 2020-09-05 17:12:44 +01:00
rtos rtos: make private the API rtos_try_next() 2020-11-04 17:39:42 +00:00
rtt Add initial RTT support 2020-12-02 23:15:52 +00:00
server Add initial RTT support 2020-12-02 23:15:52 +00:00
svf openocd: fix command's usage string 2020-09-05 17:13:10 +01:00
target mips_mips64: fix minor host endianness bug 2020-12-05 23:18:33 +00:00
transport build: fix build with --enable-minidriver-dummy 2020-11-07 20:53:39 +00:00
xsvf openocd: avoid checking for non NULL pointer to free it 2020-09-05 17:11:50 +01:00
hello.c helper/command: change prototype of command_print/command_print_sameline 2019-05-14 19:37:11 +01:00
hello.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
main.c Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
Makefile.am Add initial RTT support 2020-12-02 23:15:52 +00:00
openocd.c Add initial RTT support 2020-12-02 23:15:52 +00:00
openocd.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00