浏览代码

sh: modify checkcpu() for SH-4A

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>
Yoshihiro Shimoda 12 年之前
父节点
当前提交
d185857267
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      arch/sh/cpu/sh4/cpu.c

+ 4 - 0
arch/sh/cpu/sh4/cpu.c

@@ -29,7 +29,11 @@
 
 int checkcpu(void)
 {
+#ifdef CONFIG_SH4A
+	puts("CPU: SH-4A\n");
+#else
 	puts("CPU: SH4\n");
+#endif
 	return 0;
 }