--- tme/generic/bus-device-auto.sh 2018/04/24 16:41:13 1.1.1.2 +++ tme/generic/bus-device-auto.sh 2018/04/24 16:43:00 1.1.1.3 @@ -1,6 +1,6 @@ #! /bin/sh -# $Id: bus-device-auto.sh,v 1.1.1.2 2018/04/24 16:41:13 root Exp $ +# $Id: bus-device-auto.sh,v 1.1.1.3 2018/04/24 16:43:00 root Exp $ # generic/bus-device-auto.sh - automatically generates C code for # generic bus device support: @@ -48,26 +48,12 @@ done PROG=`basename $0` cat <tme_bus_tlb_token;" echo "" echo " /* get our bus connection: */" echo " conn_bus = tme_memory_atomic_pointer_read(struct tme_bus_connection *," @@ -311,7 +296,7 @@ while test ${i_width} != 32; do echo " /* reload the TLB entry: */" echo " err = (*conn_bus->tme_bus_tlb_fill)" echo " (conn_bus," - echo " tlb," + echo " &tlb_local," echo " address_init," echo " TME_BUS_CYCLE_${capname});" echo "" @@ -324,7 +309,7 @@ while test ${i_width} != 32; do echo " }" echo "" echo " /* store the TLB entry: */" - echo " tme_bus_tlb_back(tlb);" + echo " *tlb = tlb_local;" echo "" echo " /* loop to check the newly filled TLB entry: */" echo " continue;"