sh: modify checkcpu() for SH-4A
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Mon, 23 Jul 2012 14:53:42 +0000 (14:53 +0000)
committerNobuhiro Iwamatsu <iwamatsu@nigauri.org>
Wed, 8 Aug 2012 00:50:41 +0000 (09:50 +0900)
Even if using CPU is SH-4A, the previous code always put "SH4".
This patch fixes it.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
arch/sh/cpu/sh4/cpu.c

index f136758..7da1ef7 100644 (file)
 
 int checkcpu(void)
 {
+#ifdef CONFIG_SH4A
+       puts("CPU: SH-4A\n");
+#else
        puts("CPU: SH4\n");
+#endif
        return 0;
 }