瀏覽代碼

sh: Correct SH-5 instruction size value.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Paul Mundt 17 年之前
父節點
當前提交
0fa70efbd4
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      include/asm-sh/system.h

+ 3 - 1
include/asm-sh/system.h

@@ -255,8 +255,10 @@ static inline void *set_exception_table_evt(unsigned int evt, void *handler)
  */
 #ifdef CONFIG_CPU_SH2A
 extern unsigned int instruction_size(unsigned int insn);
-#else
+#elif defined(CONFIG_SUPERH32)
 #define instruction_size(insn)	(2)
+#else
+#define instruction_size(insn)	(4)
 #endif
 
 /* XXX