/* Blackfin Universal Asynchronous Receiver/Transmitter (UART) model.
For "old style" UARTs on BF53x/etc... parts.
- Copyright (C) 2010-2016 Free Software Foundation, Inc.
+ Copyright (C) 2010-2021 Free Software Foundation, Inc.
Contributed by Analog Devices, Inc.
This file is part of simulators.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
-#include "config.h"
+/* This must come before any other includes. */
+#include "defs.h"
#include "sim-main.h"
#include "dv-sockser.h"
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 ();
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 ();