Skip to contentSkip to conversation

sh: modify checkcpu() for SH-4A

PATCH New Shimoda 2 participants 2 messages Jul 24, 2012 SuperH

lore
Share & tools
lore

Shimoda

#0 lore raw

PATCH 1/1 sh: modify checkcpu() for SH-4A

Even if using CPU is SH-4A, the previous code always put "SH4". This patch fixes it.

---
 arch/sh/cpu/sh4/cpu.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
arch/sh/cpu/sh4/cpu.c +4 -0
index f136758..7da1ef7 100644
@@ -29,7 +29,11 @@
 
 int checkcpu(void)
 {
+#ifdef CONFIG_SH4A
+	puts("CPU: SH-4A\n");
+#else
 	puts("CPU: SH4\n");
+#endif
 	return 0;
 }
 
Signature · 1 line
1.7.1
#1 lore raw

PATCH 1/1 sh: modify checkcpu() for SH-4A

Applied, thanks.

Best regards,
Nobuhiro

2012/7/24 Shimoda, Yoshihiro <[email protected]>:

Quoted 26 lines

Even if using CPU is SH-4A, the previous code always put "SH4". This patch fixes it.

---
 arch/sh/cpu/sh4/cpu.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
arch/sh/cpu/sh4/cpu.c +4 -1
index f136758..7da1ef7 100644
@@ -29,7 +29,11 @@
 
 int checkcpu(void)
 {
+#ifdef CONFIG_SH4A
+       puts("CPU: SH-4A\n");
+#else
        puts("CPU: SH4\n");
+#endif
        return 0;
 }
 
--

1.7.1

Signature · 3 lines
Nobuhiro Iwamatsu
   iwamatsu at {nigauri.org / debian.org}
   GPG ID: 40AD1FA6