diff options
author | Paul Mundt <lethal@linux-sh.org> | 2007-11-08 05:08:28 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-01-27 23:18:40 -0500 |
commit | 0fa70efbd45a6c4fd946fa71c0a609f2c509d07c (patch) | |
tree | ef4992b4c0f0e8e03b2d6bbe2346fff087668b99 | |
parent | d752542ade337f059d12c59c4bc9c312befa1f1e (diff) |
sh: Correct SH-5 instruction size value.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
-rw-r--r-- | include/asm-sh/system.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/asm-sh/system.h b/include/asm-sh/system.h index 4faa2fb88616..288abeb5476f 100644 --- a/include/asm-sh/system.h +++ b/include/asm-sh/system.h | |||
@@ -255,8 +255,10 @@ static inline void *set_exception_table_evt(unsigned int evt, void *handler) | |||
255 | */ | 255 | */ |
256 | #ifdef CONFIG_CPU_SH2A | 256 | #ifdef CONFIG_CPU_SH2A |
257 | extern unsigned int instruction_size(unsigned int insn); | 257 | extern unsigned int instruction_size(unsigned int insn); |
258 | #else | 258 | #elif defined(CONFIG_SUPERH32) |
259 | #define instruction_size(insn) (2) | 259 | #define instruction_size(insn) (2) |
260 | #else | ||
261 | #define instruction_size(insn) (4) | ||
260 | #endif | 262 | #endif |
261 | 263 | ||
262 | /* XXX | 264 | /* XXX |