s390x: add helper get_machine_class