This patch implements wait instruction for mips. Examples are added in test files.