target-s390x: add get_per_atmid function