--- tme/machine/sun2/sun2-mmu.c 2018/04/24 16:38:49 1.1.1.2 +++ tme/machine/sun2/sun2-mmu.c 2018/04/24 16:40:07 1.1.1.3 @@ -1,4 +1,4 @@ -/* $Id: sun2-mmu.c,v 1.1.1.2 2018/04/24 16:38:49 root Exp $ */ +/* $Id: sun2-mmu.c,v 1.1.1.3 2018/04/24 16:40:07 root Exp $ */ /* machine/sun2/sun2-mmu.c - implementation of Sun 2 MMU emulation: */ @@ -34,7 +34,7 @@ */ #include -_TME_RCSID("$Id: sun2-mmu.c,v 1.1.1.2 2018/04/24 16:38:49 root Exp $"); +_TME_RCSID("$Id: sun2-mmu.c,v 1.1.1.3 2018/04/24 16:40:07 root Exp $"); /* includes: */ #include "sun2-impl.h" @@ -737,7 +737,7 @@ _tme_sun2_mmu_context_user_set(struct tm int _tme_sun2_mmu_tlb_set_allocate(struct tme_bus_connection *conn_bus_asker, unsigned int count, unsigned int sizeof_one, - TME_ATOMIC_POINTER_TYPE(struct tme_bus_tlb **) _tlbs) + TME_ATOMIC_POINTER_TYPE(struct tme_bus_tlb *) _tlbs) { struct tme_sun2 *sun2; int rc; @@ -829,6 +829,7 @@ _tme_sun2_mmu_reset(struct tme_sun2 *sun return (TME_OK); } sun2->tme_sun2_reset_tlbs = NULL; + /* XXX FIXME - this is not thread-safe: */ tlb = &tlb_m68k->tme_m68k_tlb_bus_tlb; /* fill the TLB entry: */