PowerPC64 .branch_lt address
[binutils-gdb.git] / sim / bfin / dv-bfin_jtag.c
index 12629970cc882e8866685ecc015ff36eadfaddb8..7cc2ee009e214db0db373a0c64a48f86ad538f10 100644 (file)
@@ -1,6 +1,6 @@
 /* Blackfin JTAG model.
 
-   Copyright (C) 2010-2021 Free Software Foundation, Inc.
+   Copyright (C) 2010-2022 Free Software Foundation, Inc.
    Contributed by Analog Devices, Inc.
 
    This file is part of simulators.
@@ -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 ();