finish unifying thread register handling in preparation for porting
7 files changed