renamed of reg_type to mcudefs.