/* Blackfin Ethernet Media Access Controller (EMAC) model.
- Copyright (C) 2010-2019 Free Software Foundation, Inc.
+ Copyright (C) 2010-2022 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 <errno.h>
#include <fcntl.h>
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 ();
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 ();