]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
sim: bfin: fix build warnings w/newer gcc
authorMike Frysinger <vapier@gentoo.org>
Mon, 24 May 2021 01:35:32 +0000 (21:35 -0400)
committerMike Frysinger <vapier@gentoo.org>
Mon, 24 May 2021 01:37:31 +0000 (21:37 -0400)
commit3cc4ee83adf2f6e2ab21e32f7d5942b1d1803a04
treef5571f59973f5546e150d1e453aaf878b7f4ec89
parent98591adf69eb2eeb0ae4beceb370da406b0ea0dd
sim: bfin: fix build warnings w/newer gcc

The bfin_otp_write_page_val func wants a pointer to an bu64[2] array,
but this code passes it a pointer to a single bu64.  It's in a struct
with a known compatible layout:
bu64 data0, data1, data2, data3;
But gcc doesn't allow these kinds of tricks anymore.  Use the more
verbose form to make the compiler happy since this is not performance
sensitive code.
sim/bfin/ChangeLog
sim/bfin/dv-bfin_otp.c