target-arm: Move get_mem_index to translate.h