extend register access for context struct