Use DynamoRIO helper function to get GP register from context.