aboutsummaryrefslogtreecommitdiff
path: root/sim/bfin/dv-eth_phy.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-10-31 23:55:51 -0400
committerMike Frysinger <vapier@gentoo.org>2021-10-31 23:55:51 -0400
commitf0bef2e9a73f7df65de5f9b93fbdbc275c5d22e9 (patch)
tree030aab76933a75b503cc7dab5c44465ad9ed290d /sim/bfin/dv-eth_phy.c
parentfad7f13ae13b03edfd8f0f2833af09d3a65a6bc7 (diff)
downloadgdb-f0bef2e9a73f7df65de5f9b93fbdbc275c5d22e9.zip
gdb-f0bef2e9a73f7df65de5f9b93fbdbc275c5d22e9.tar.gz
gdb-f0bef2e9a73f7df65de5f9b93fbdbc275c5d22e9.tar.bz2
sim: bfin: cast pointers using uintptr_t
We can't assume that sizeof(long) == sizeof(void*), so change all these casts over to uintptr_t.
Diffstat (limited to 'sim/bfin/dv-eth_phy.c')
-rw-r--r--sim/bfin/dv-eth_phy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/bfin/dv-eth_phy.c b/sim/bfin/dv-eth_phy.c
index 4860542..2f6749a 100644
--- a/sim/bfin/dv-eth_phy.c
+++ b/sim/bfin/dv-eth_phy.c
@@ -86,7 +86,7 @@ eth_phy_io_write_buffer (struct hw *me, const void *source,
value = dv_load_2 (source);
reg_off = addr - phy->base;
- valuep = (void *)((unsigned long)phy + reg_base() + reg_off);
+ valuep = (void *)((uintptr_t)phy + reg_base() + reg_off);
HW_TRACE_WRITE ();
@@ -117,7 +117,7 @@ eth_phy_io_read_buffer (struct hw *me, void *dest,
bu16 *valuep;
reg_off = addr - phy->base;
- valuep = (void *)((unsigned long)phy + reg_base() + reg_off);
+ valuep = (void *)((uintptr_t)phy + reg_base() + reg_off);
HW_TRACE_READ ();