calculate mem_base in portal.c for bluesim (removed calc in BsimCtrl)