Skip to content

Commit

Permalink
sh: Correct SH-5 instruction size value.
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Paul Mundt committed Jan 28, 2008
1 parent d752542 commit 0fa70ef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/asm-sh/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0fa70ef

Please sign in to comment.