summaryrefslogtreecommitdiff
path: root/cpu/nios/cpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpu/nios/cpu.c')
-rw-r--r--cpu/nios/cpu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpu/nios/cpu.c b/cpu/nios/cpu.c
index 5cf1883..d2bb2c0 100644
--- a/cpu/nios/cpu.c
+++ b/cpu/nios/cpu.c
@@ -37,8 +37,8 @@ int checkcpu (void)
printf ("CPU: ");
printf ("%s", (val & 0x00008000) ? "Nios-16 " : "Nios-32 ");
rev_major = (val>>12) & 0x07;
- rev_minor = val & 0x0f;
- printf ("Rev. %d.%02d (0x%04x)", rev_major, rev_minor,
+ rev_minor = (val>>4) & 0x0ff;
+ printf ("Rev. %d.%d (0x%04x)", rev_major, rev_minor,
val & 0xffff);
if (rev_major == 0x08)
printf (" [OpenCore (R) Plus]");