imm32: Add a helper function to get the default context.