aboutsummaryrefslogtreecommitdiff
path: root/sim
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
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')
-rw-r--r--sim/bfin/dv-bfin_cec.c2
-rw-r--r--sim/bfin/dv-bfin_ctimer.c4
-rw-r--r--sim/bfin/dv-bfin_dma.c4
-rw-r--r--sim/bfin/dv-bfin_ebiu_amc.c2
-rw-r--r--sim/bfin/dv-bfin_ebiu_ddrc.c4
-rw-r--r--sim/bfin/dv-bfin_ebiu_sdc.c4
-rw-r--r--sim/bfin/dv-bfin_emac.c4
-rw-r--r--sim/bfin/dv-bfin_eppi.c4
-rw-r--r--sim/bfin/dv-bfin_gpio.c4
-rw-r--r--sim/bfin/dv-bfin_gpio2.c4
-rw-r--r--sim/bfin/dv-bfin_gptimer.c4
-rw-r--r--sim/bfin/dv-bfin_jtag.c4
-rw-r--r--sim/bfin/dv-bfin_mmu.c4
-rw-r--r--sim/bfin/dv-bfin_nfc.c4
-rw-r--r--sim/bfin/dv-bfin_otp.c6
-rw-r--r--sim/bfin/dv-bfin_pfmon.c4
-rw-r--r--sim/bfin/dv-bfin_pint.c4
-rw-r--r--sim/bfin/dv-bfin_pll.c4
-rw-r--r--sim/bfin/dv-bfin_ppi.c4
-rw-r--r--sim/bfin/dv-bfin_rtc.c4
-rw-r--r--sim/bfin/dv-bfin_sic.c16
-rw-r--r--sim/bfin/dv-bfin_spi.c4
-rw-r--r--sim/bfin/dv-bfin_twi.c4
-rw-r--r--sim/bfin/dv-bfin_uart.c4
-rw-r--r--sim/bfin/dv-bfin_uart2.c4
-rw-r--r--sim/bfin/dv-bfin_wdog.c4
-rw-r--r--sim/bfin/dv-bfin_wp.c4
-rw-r--r--sim/bfin/dv-eth_phy.c4
28 files changed, 61 insertions, 61 deletions
diff --git a/sim/bfin/dv-bfin_cec.c b/sim/bfin/dv-bfin_cec.c
index 7ad3ea0..3cd7cb3 100644
--- a/sim/bfin/dv-bfin_cec.c
+++ b/sim/bfin/dv-bfin_cec.c
@@ -131,7 +131,7 @@ bfin_cec_io_read_buffer (struct hw *me, void *dest,
return 0;
mmr_off = addr - cec->base;
- valuep = (void *)((unsigned long)cec + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)cec + mmr_base() + mmr_off);
HW_TRACE_READ ();
diff --git a/sim/bfin/dv-bfin_ctimer.c b/sim/bfin/dv-bfin_ctimer.c
index df62d94..b826a60 100644
--- a/sim/bfin/dv-bfin_ctimer.c
+++ b/sim/bfin/dv-bfin_ctimer.c
@@ -134,7 +134,7 @@ bfin_ctimer_io_write_buffer (struct hw *me, const void *source,
value = dv_load_4 (source);
mmr_off = addr - ctimer->base;
- valuep = (void *)((unsigned long)ctimer + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)ctimer + mmr_base() + mmr_off);
HW_TRACE_WRITE ();
@@ -202,7 +202,7 @@ bfin_ctimer_io_read_buffer (struct hw *me, void *dest,
return 0;
mmr_off = addr - ctimer->base;
- valuep = (void *)((unsigned long)ctimer + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)ctimer + mmr_base() + mmr_off);
HW_TRACE_READ ();
diff --git a/sim/bfin/dv-bfin_dma.c b/sim/bfin/dv-bfin_dma.c
index d7dc541..4651e62 100644
--- a/sim/bfin/dv-bfin_dma.c
+++ b/sim/bfin/dv-bfin_dma.c
@@ -331,7 +331,7 @@ bfin_dma_io_write_buffer (struct hw *me, const void *source, int space,
value = dv_load_2 (source);
mmr_off = addr % dma->base;
- valuep = (void *)((unsigned long)dma + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)dma + mmr_base() + mmr_off);
value16p = valuep;
value32p = valuep;
@@ -429,7 +429,7 @@ bfin_dma_io_read_buffer (struct hw *me, void *dest, int space,
return 0;
mmr_off = addr % dma->base;
- valuep = (void *)((unsigned long)dma + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)dma + mmr_base() + mmr_off);
value16p = valuep;
value32p = valuep;
diff --git a/sim/bfin/dv-bfin_ebiu_amc.c b/sim/bfin/dv-bfin_ebiu_amc.c
index 29c4c4a..aba9c50 100644
--- a/sim/bfin/dv-bfin_ebiu_amc.c
+++ b/sim/bfin/dv-bfin_ebiu_amc.c
@@ -331,7 +331,7 @@ bfin_ebiu_amc_io_read_buffer (struct hw *me, void *dest, int space,
return 0;
mmr_off = addr - amc->base;
- valuep = (void *)((unsigned long)amc + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)amc + mmr_base() + mmr_off);
HW_TRACE_READ ();
diff --git a/sim/bfin/dv-bfin_ebiu_ddrc.c b/sim/bfin/dv-bfin_ebiu_ddrc.c
index 4160cb2..e82a135 100644
--- a/sim/bfin/dv-bfin_ebiu_ddrc.c
+++ b/sim/bfin/dv-bfin_ebiu_ddrc.c
@@ -79,7 +79,7 @@ bfin_ebiu_ddrc_io_write_buffer (struct hw *me, const void *source,
value = dv_load_2 (source);
mmr_off = addr - ddrc->base;
- valuep = (void *)((unsigned long)ddrc + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)ddrc + mmr_base() + mmr_off);
value16p = valuep;
value32p = valuep;
@@ -118,7 +118,7 @@ bfin_ebiu_ddrc_io_read_buffer (struct hw *me, void *dest,
return 0;
mmr_off = addr - ddrc->base;
- valuep = (void *)((unsigned long)ddrc + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)ddrc + mmr_base() + mmr_off);
value16p = valuep;
value32p = valuep;
diff --git a/sim/bfin/dv-bfin_ebiu_sdc.c b/sim/bfin/dv-bfin_ebiu_sdc.c
index 4af04dc..9347d7c 100644
--- a/sim/bfin/dv-bfin_ebiu_sdc.c
+++ b/sim/bfin/dv-bfin_ebiu_sdc.c
@@ -67,7 +67,7 @@ bfin_ebiu_sdc_io_write_buffer (struct hw *me, const void *source,
value = dv_load_2 (source);
mmr_off = addr - sdc->base;
- valuep = (void *)((unsigned long)sdc + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)sdc + mmr_base() + mmr_off);
value16p = valuep;
value32p = valuep;
@@ -123,7 +123,7 @@ bfin_ebiu_sdc_io_read_buffer (struct hw *me, void *dest,
return 0;
mmr_off = addr - sdc->base;
- valuep = (void *)((unsigned long)sdc + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)sdc + mmr_base() + mmr_off);
value16p = valuep;
value32p = valuep;
diff --git a/sim/bfin/dv-bfin_emac.c b/sim/bfin/dv-bfin_emac.c
index e5ceedb..143d07a 100644
--- a/sim/bfin/dv-bfin_emac.c
+++ b/sim/bfin/dv-bfin_emac.c
@@ -185,7 +185,7 @@ bfin_emac_io_write_buffer (struct hw *me, const void *source,
value = dv_load_4 (source);
mmr_off = addr - emac->base;
- valuep = (void *)((unsigned long)emac + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)emac + mmr_base() + mmr_off);
HW_TRACE_WRITE ();
@@ -286,7 +286,7 @@ bfin_emac_io_read_buffer (struct hw *me, void *dest,
return 0;
mmr_off = addr - emac->base;
- valuep = (void *)((unsigned long)emac + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)emac + mmr_base() + mmr_off);
HW_TRACE_READ ();
diff --git a/sim/bfin/dv-bfin_eppi.c b/sim/bfin/dv-bfin_eppi.c
index 169895d..f31782b 100644
--- a/sim/bfin/dv-bfin_eppi.c
+++ b/sim/bfin/dv-bfin_eppi.c
@@ -101,7 +101,7 @@ bfin_eppi_io_write_buffer (struct hw *me, const void *source,
value = dv_load_2 (source);
mmr_off = addr - eppi->base;
- valuep = (void *)((unsigned long)eppi + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)eppi + mmr_base() + mmr_off);
value16p = valuep;
value32p = valuep;
@@ -162,7 +162,7 @@ bfin_eppi_io_read_buffer (struct hw *me, void *dest,
return 0;
mmr_off = addr - eppi->base;
- valuep = (void *)((unsigned long)eppi + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)eppi + mmr_base() + mmr_off);
value16p = valuep;
value32p = valuep;
diff --git a/sim/bfin/dv-bfin_gpio.c b/sim/bfin/dv-bfin_gpio.c
index bbcc54f..12f0c4d 100644
--- a/sim/bfin/dv-bfin_gpio.c
+++ b/sim/bfin/dv-bfin_gpio.c
@@ -117,7 +117,7 @@ bfin_gpio_io_write_buffer (struct hw *me, const void *source, int space,
value = dv_load_2 (source);
mmr_off = addr - port->base;
- valuep = (void *)((unsigned long)port + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)port + mmr_base() + mmr_off);
HW_TRACE_WRITE ();
@@ -190,7 +190,7 @@ bfin_gpio_io_read_buffer (struct hw *me, void *dest, int space,
return 0;
mmr_off = addr - port->base;
- valuep = (void *)((unsigned long)port + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)port + mmr_base() + mmr_off);
HW_TRACE_READ ();
diff --git a/sim/bfin/dv-bfin_gpio2.c b/sim/bfin/dv-bfin_gpio2.c
index 61c9980..0cb91e7 100644
--- a/sim/bfin/dv-bfin_gpio2.c
+++ b/sim/bfin/dv-bfin_gpio2.c
@@ -83,7 +83,7 @@ bfin_gpio_io_write_buffer (struct hw *me, const void *source, int space,
value = dv_load_4 (source);
else
value = dv_load_2 (source);
- valuep = (void *)((unsigned long)port + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)port + mmr_base() + mmr_off);
value16p = valuep;
value32p = valuep;
@@ -166,7 +166,7 @@ bfin_gpio_io_read_buffer (struct hw *me, void *dest, int space,
if (!dv_bfin_mmr_require_16 (me, addr, nr_bytes, false))
return 0;
- valuep = (void *)((unsigned long)port + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)port + mmr_base() + mmr_off);
value16p = valuep;
value32p = valuep;
diff --git a/sim/bfin/dv-bfin_gptimer.c b/sim/bfin/dv-bfin_gptimer.c
index 3dfa2b5..685c48e 100644
--- a/sim/bfin/dv-bfin_gptimer.c
+++ b/sim/bfin/dv-bfin_gptimer.c
@@ -72,7 +72,7 @@ bfin_gptimer_io_write_buffer (struct hw *me, const void *source, int space,
value = dv_load_2 (source);
mmr_off = addr - gptimer->base;
- valuep = (void *)((unsigned long)gptimer + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)gptimer + mmr_base() + mmr_off);
value16p = valuep;
value32p = valuep;
@@ -115,7 +115,7 @@ bfin_gptimer_io_read_buffer (struct hw *me, void *dest, int space,
return 0;
mmr_off = addr - gptimer->base;
- valuep = (void *)((unsigned long)gptimer + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)gptimer + mmr_base() + mmr_off);
value16p = valuep;
value32p = valuep;
diff --git a/sim/bfin/dv-bfin_jtag.c b/sim/bfin/dv-bfin_jtag.c
index 1262997..5a0be0c 100644
--- a/sim/bfin/dv-bfin_jtag.c
+++ b/sim/bfin/dv-bfin_jtag.c
@@ -61,7 +61,7 @@ bfin_jtag_io_write_buffer (struct hw *me, const void *source, int space,
value = dv_load_4 (source);
mmr_off = addr - jtag->base;
- valuep = (void *)((unsigned long)jtag + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)jtag + mmr_base() + mmr_off);
HW_TRACE_WRITE ();
@@ -95,7 +95,7 @@ bfin_jtag_io_read_buffer (struct hw *me, void *dest, int space,
return 0;
mmr_off = addr - jtag->base;
- valuep = (void *)((unsigned long)jtag + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)jtag + mmr_base() + mmr_off);
HW_TRACE_READ ();
diff --git a/sim/bfin/dv-bfin_mmu.c b/sim/bfin/dv-bfin_mmu.c
index cadc9df..263d5b2 100644
--- a/sim/bfin/dv-bfin_mmu.c
+++ b/sim/bfin/dv-bfin_mmu.c
@@ -109,7 +109,7 @@ bfin_mmu_io_write_buffer (struct hw *me, const void *source,
value = dv_load_4 (source);
mmr_off = addr - mmu->base;
- valuep = (void *)((unsigned long)mmu + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)mmu + mmr_base() + mmr_off);
HW_TRACE_WRITE ();
@@ -183,7 +183,7 @@ bfin_mmu_io_read_buffer (struct hw *me, void *dest,
return 0;
mmr_off = addr - mmu->base;
- valuep = (void *)((unsigned long)mmu + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)mmu + mmr_base() + mmr_off);
HW_TRACE_READ ();
diff --git a/sim/bfin/dv-bfin_nfc.c b/sim/bfin/dv-bfin_nfc.c
index 80fe49d..17048a8 100644
--- a/sim/bfin/dv-bfin_nfc.c
+++ b/sim/bfin/dv-bfin_nfc.c
@@ -84,7 +84,7 @@ bfin_nfc_io_write_buffer (struct hw *me, const void *source, int space,
value = dv_load_2 (source);
mmr_off = addr - nfc->base;
- valuep = (void *)((unsigned long)nfc + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)nfc + mmr_base() + mmr_off);
HW_TRACE_WRITE ();
@@ -134,7 +134,7 @@ bfin_nfc_io_read_buffer (struct hw *me, void *dest, int space,
return 0;
mmr_off = addr - nfc->base;
- valuep = (void *)((unsigned long)nfc + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)nfc + mmr_base() + mmr_off);
HW_TRACE_READ ();
diff --git a/sim/bfin/dv-bfin_otp.c b/sim/bfin/dv-bfin_otp.c
index a9f768d..8aabe48 100644
--- a/sim/bfin/dv-bfin_otp.c
+++ b/sim/bfin/dv-bfin_otp.c
@@ -116,7 +116,7 @@ bfin_otp_io_write_buffer (struct hw *me, const void *source, int space,
value = dv_load_2 (source);
mmr_off = addr - otp->base;
- valuep = (void *)((unsigned long)otp + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)otp + mmr_base() + mmr_off);
value16p = valuep;
value32p = valuep;
@@ -192,7 +192,7 @@ bfin_otp_io_read_buffer (struct hw *me, void *dest, int space,
return 0;
mmr_off = addr - otp->base;
- valuep = (void *)((unsigned long)otp + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)otp + mmr_base() + mmr_off);
value16p = valuep;
value32p = valuep;
@@ -280,7 +280,7 @@ bfin_otp_finish (struct hw *me)
otp->timing = 0x00001485;
/* Semi-random value for unique chip id. */
- bfin_otp_write_page_val2 (otp, FPS00, (unsigned long)otp, ~(unsigned long)otp);
+ bfin_otp_write_page_val2 (otp, FPS00, (uintptr_t)otp, ~(uintptr_t)otp);
memset (part_str, 0, sizeof (part_str));
sprintf (part_str, "ADSP-BF%iX", type);
diff --git a/sim/bfin/dv-bfin_pfmon.c b/sim/bfin/dv-bfin_pfmon.c
index bffe67b..bbcb4d6 100644
--- a/sim/bfin/dv-bfin_pfmon.c
+++ b/sim/bfin/dv-bfin_pfmon.c
@@ -60,7 +60,7 @@ bfin_pfmon_io_write_buffer (struct hw *me, const void *source, int space,
value = dv_load_4 (source);
mmr_off = addr - pfmon->base;
- valuep = (void *)((unsigned long)pfmon + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)pfmon + mmr_base() + mmr_off);
HW_TRACE_WRITE ();
@@ -93,7 +93,7 @@ bfin_pfmon_io_read_buffer (struct hw *me, void *dest, int space,
return 0;
mmr_off = addr - pfmon->base;
- valuep = (void *)((unsigned long)pfmon + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)pfmon + mmr_base() + mmr_off);
HW_TRACE_READ ();
diff --git a/sim/bfin/dv-bfin_pint.c b/sim/bfin/dv-bfin_pint.c
index b4f4f40..8a15328 100644
--- a/sim/bfin/dv-bfin_pint.c
+++ b/sim/bfin/dv-bfin_pint.c
@@ -74,7 +74,7 @@ bfin_pint_io_write_buffer (struct hw *me, const void *source, int space,
else
value = dv_load_2 (source);
mmr_off = addr - pint->base;
- valuep = (void *)((unsigned long)pint + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)pint + mmr_base() + mmr_off);
HW_TRACE_WRITE ();
@@ -143,7 +143,7 @@ bfin_pint_io_read_buffer (struct hw *me, void *dest, int space,
return 0;
mmr_off = addr - pint->base;
- valuep = (void *)((unsigned long)pint + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)pint + mmr_base() + mmr_off);
HW_TRACE_READ ();
diff --git a/sim/bfin/dv-bfin_pll.c b/sim/bfin/dv-bfin_pll.c
index e2a5f5c..0e2c134 100644
--- a/sim/bfin/dv-bfin_pll.c
+++ b/sim/bfin/dv-bfin_pll.c
@@ -70,7 +70,7 @@ bfin_pll_io_write_buffer (struct hw *me, const void *source,
value = dv_load_2 (source);
mmr_off = addr - pll->base;
- valuep = (void *)((unsigned long)pll + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)pll + mmr_base() + mmr_off);
value16p = valuep;
value32p = valuep;
@@ -109,7 +109,7 @@ bfin_pll_io_read_buffer (struct hw *me, void *dest,
return 0;
mmr_off = addr - pll->base;
- valuep = (void *)((unsigned long)pll + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)pll + mmr_base() + mmr_off);
value16p = valuep;
value32p = valuep;
diff --git a/sim/bfin/dv-bfin_ppi.c b/sim/bfin/dv-bfin_ppi.c
index a67dc5e..6eff08e 100644
--- a/sim/bfin/dv-bfin_ppi.c
+++ b/sim/bfin/dv-bfin_ppi.c
@@ -92,7 +92,7 @@ bfin_ppi_io_write_buffer (struct hw *me, const void *source, int space,
value = dv_load_2 (source);
mmr_off = addr - ppi->base;
- valuep = (void *)((unsigned long)ppi + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)ppi + mmr_base() + mmr_off);
HW_TRACE_WRITE ();
@@ -131,7 +131,7 @@ bfin_ppi_io_read_buffer (struct hw *me, void *dest, int space,
return 0;
mmr_off = addr - ppi->base;
- valuep = (void *)((unsigned long)ppi + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)ppi + mmr_base() + mmr_off);
HW_TRACE_READ ();
diff --git a/sim/bfin/dv-bfin_rtc.c b/sim/bfin/dv-bfin_rtc.c
index 06ae424..2f24360 100644
--- a/sim/bfin/dv-bfin_rtc.c
+++ b/sim/bfin/dv-bfin_rtc.c
@@ -72,7 +72,7 @@ bfin_rtc_io_write_buffer (struct hw *me, const void *source,
value = dv_load_2 (source);
mmr_off = addr - rtc->base;
- valuep = (void *)((unsigned long)rtc + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)rtc + mmr_base() + mmr_off);
value16p = valuep;
value32p = valuep;
@@ -114,7 +114,7 @@ bfin_rtc_io_read_buffer (struct hw *me, void *dest,
return 0;
mmr_off = addr - rtc->base;
- valuep = (void *)((unsigned long)rtc + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)rtc + mmr_base() + mmr_off);
value16p = valuep;
value32p = valuep;
diff --git a/sim/bfin/dv-bfin_sic.c b/sim/bfin/dv-bfin_sic.c
index cc90a4c..da77eda 100644
--- a/sim/bfin/dv-bfin_sic.c
+++ b/sim/bfin/dv-bfin_sic.c
@@ -161,7 +161,7 @@ bfin_sic_52x_io_write_buffer (struct hw *me, const void *source, int space,
value = dv_load_2 (source);
mmr_off = addr - sic->base;
- valuep = (void *)((unsigned long)sic + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)sic + mmr_base() + mmr_off);
value16p = valuep;
value32p = valuep;
@@ -214,7 +214,7 @@ bfin_sic_52x_io_read_buffer (struct hw *me, void *dest, int space,
return 0;
mmr_off = addr - sic->base;
- valuep = (void *)((unsigned long)sic + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)sic + mmr_base() + mmr_off);
value16p = valuep;
value32p = valuep;
@@ -275,7 +275,7 @@ bfin_sic_537_io_write_buffer (struct hw *me, const void *source, int space,
value = dv_load_2 (source);
mmr_off = addr - sic->base;
- valuep = (void *)((unsigned long)sic + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)sic + mmr_base() + mmr_off);
value16p = valuep;
value32p = valuep;
@@ -327,7 +327,7 @@ bfin_sic_537_io_read_buffer (struct hw *me, void *dest, int space,
return 0;
mmr_off = addr - sic->base;
- valuep = (void *)((unsigned long)sic + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)sic + mmr_base() + mmr_off);
value16p = valuep;
value32p = valuep;
@@ -389,7 +389,7 @@ bfin_sic_54x_io_write_buffer (struct hw *me, const void *source, int space,
value = dv_load_2 (source);
mmr_off = addr - sic->base;
- valuep = (void *)((unsigned long)sic + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)sic + mmr_base() + mmr_off);
value16p = valuep;
value32p = valuep;
@@ -438,7 +438,7 @@ bfin_sic_54x_io_read_buffer (struct hw *me, void *dest, int space,
return 0;
mmr_off = addr - sic->base;
- valuep = (void *)((unsigned long)sic + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)sic + mmr_base() + mmr_off);
value16p = valuep;
value32p = valuep;
@@ -496,7 +496,7 @@ bfin_sic_561_io_write_buffer (struct hw *me, const void *source, int space,
value = dv_load_2 (source);
mmr_off = addr - sic->base;
- valuep = (void *)((unsigned long)sic + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)sic + mmr_base() + mmr_off);
value16p = valuep;
value32p = valuep;
@@ -549,7 +549,7 @@ bfin_sic_561_io_read_buffer (struct hw *me, void *dest, int space,
return 0;
mmr_off = addr - sic->base;
- valuep = (void *)((unsigned long)sic + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)sic + mmr_base() + mmr_off);
value16p = valuep;
value32p = valuep;
diff --git a/sim/bfin/dv-bfin_spi.c b/sim/bfin/dv-bfin_spi.c
index c0869fc..d56b38b 100644
--- a/sim/bfin/dv-bfin_spi.c
+++ b/sim/bfin/dv-bfin_spi.c
@@ -84,7 +84,7 @@ bfin_spi_io_write_buffer (struct hw *me, const void *source, int space,
value = dv_load_2 (source);
mmr_off = addr - spi->base;
- valuep = (void *)((unsigned long)spi + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)spi + mmr_base() + mmr_off);
HW_TRACE_WRITE ();
@@ -129,7 +129,7 @@ bfin_spi_io_read_buffer (struct hw *me, void *dest, int space,
return 0;
mmr_off = addr - spi->base;
- valuep = (void *)((unsigned long)spi + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)spi + mmr_base() + mmr_off);
HW_TRACE_READ ();
diff --git a/sim/bfin/dv-bfin_twi.c b/sim/bfin/dv-bfin_twi.c
index 00b080f..92d092f 100644
--- a/sim/bfin/dv-bfin_twi.c
+++ b/sim/bfin/dv-bfin_twi.c
@@ -88,7 +88,7 @@ bfin_twi_io_write_buffer (struct hw *me, const void *source, int space,
value = dv_load_2 (source);
mmr_off = addr - twi->base;
- valuep = (void *)((unsigned long)twi + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)twi + mmr_base() + mmr_off);
HW_TRACE_WRITE ();
@@ -142,7 +142,7 @@ bfin_twi_io_read_buffer (struct hw *me, void *dest, int space,
return 0;
mmr_off = addr - twi->base;
- valuep = (void *)((unsigned long)twi + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)twi + mmr_base() + mmr_off);
HW_TRACE_READ ();
diff --git a/sim/bfin/dv-bfin_uart.c b/sim/bfin/dv-bfin_uart.c
index 7aa8430..ada632e 100644
--- a/sim/bfin/dv-bfin_uart.c
+++ b/sim/bfin/dv-bfin_uart.c
@@ -145,7 +145,7 @@ bfin_uart_io_write_buffer (struct hw *me, const void *source,
value = dv_load_2 (source);
mmr_off = addr - uart->base;
- valuep = (void *)((unsigned long)uart + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)uart + mmr_base() + mmr_off);
HW_TRACE_WRITE ();
@@ -268,7 +268,7 @@ bfin_uart_io_read_buffer (struct hw *me, void *dest,
return 0;
mmr_off = addr - uart->base;
- valuep = (void *)((unsigned long)uart + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)uart + mmr_base() + mmr_off);
HW_TRACE_READ ();
diff --git a/sim/bfin/dv-bfin_uart2.c b/sim/bfin/dv-bfin_uart2.c
index a798588..c330838 100644
--- a/sim/bfin/dv-bfin_uart2.c
+++ b/sim/bfin/dv-bfin_uart2.c
@@ -83,7 +83,7 @@ bfin_uart_io_write_buffer (struct hw *me, const void *source,
value = dv_load_2 (source);
mmr_off = addr - uart->base;
- valuep = (void *)((unsigned long)uart + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)uart + mmr_base() + mmr_off);
HW_TRACE_WRITE ();
@@ -140,7 +140,7 @@ bfin_uart_io_read_buffer (struct hw *me, void *dest,
return 0;
mmr_off = addr - uart->base;
- valuep = (void *)((unsigned long)uart + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)uart + mmr_base() + mmr_off);
HW_TRACE_READ ();
diff --git a/sim/bfin/dv-bfin_wdog.c b/sim/bfin/dv-bfin_wdog.c
index 850ae06..e3172ab 100644
--- a/sim/bfin/dv-bfin_wdog.c
+++ b/sim/bfin/dv-bfin_wdog.c
@@ -72,7 +72,7 @@ bfin_wdog_io_write_buffer (struct hw *me, const void *source,
value = dv_load_2 (source);
mmr_off = addr - wdog->base;
- valuep = (void *)((unsigned long)wdog + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)wdog + mmr_base() + mmr_off);
value16p = valuep;
value32p = valuep;
@@ -121,7 +121,7 @@ bfin_wdog_io_read_buffer (struct hw *me, void *dest,
return 0;
mmr_off = addr - wdog->base;
- valuep = (void *)((unsigned long)wdog + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)wdog + mmr_base() + mmr_off);
value16p = valuep;
value32p = valuep;
diff --git a/sim/bfin/dv-bfin_wp.c b/sim/bfin/dv-bfin_wp.c
index 189c121..ac3b12ba 100644
--- a/sim/bfin/dv-bfin_wp.c
+++ b/sim/bfin/dv-bfin_wp.c
@@ -84,7 +84,7 @@ bfin_wp_io_write_buffer (struct hw *me, const void *source, int space,
value = dv_load_4 (source);
mmr_off = addr - wp->base;
- valuep = (void *)((unsigned long)wp + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)wp + mmr_base() + mmr_off);
HW_TRACE_WRITE ();
@@ -124,7 +124,7 @@ bfin_wp_io_read_buffer (struct hw *me, void *dest, int space,
return 0;
mmr_off = addr - wp->base;
- valuep = (void *)((unsigned long)wp + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)wp + mmr_base() + mmr_off);
HW_TRACE_READ ();
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 ();