mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-28 04:25:10 +08:00
sim: bfin: fix the otp fix fix
Need to shift the upper 32-bits and not just combine directly with the lower 32-bits.
This commit is contained in:
parent
49149d595c
commit
f006d9e205
@ -1,3 +1,7 @@
|
||||
2021-05-28 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* dv-bfin_otp.c (bfin_otp_write_page): Shift data1 & data3 by 32-bits.
|
||||
|
||||
2021-05-23 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* dv-bfin_otp.c (bfin_otp_write_page): Fix args to
|
||||
|
@ -91,8 +91,8 @@ bfin_otp_write_page_val2 (struct bfin_otp *otp, bu16 page, bu64 lo, bu64 hi)
|
||||
static void
|
||||
bfin_otp_write_page (struct bfin_otp *otp, bu16 page)
|
||||
{
|
||||
bfin_otp_write_page_val2 (otp, page, (bu64)otp->data1 | otp->data0,
|
||||
(bu64)otp->data3 | otp->data2);
|
||||
bfin_otp_write_page_val2 (otp, page, ((bu64)otp->data1 << 32) | otp->data0,
|
||||
((bu64)otp->data3 << 32) | otp->data2);
|
||||
}
|
||||
|
||||
static unsigned
|
||||
|
Loading…
Reference in New Issue
Block a user