RISC-V: Error if function declared with different interrupt modes.