aboutsummaryrefslogtreecommitdiff
path: root/sim/sh/gencode.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-03-28 14:55:11 -0400
committerMike Frysinger <vapier@gentoo.org>2015-03-28 17:45:30 -0400
commit02131c7ff660a5ca08147899429e6e7780d737aa (patch)
treed5e5931419e6ebaed6ce1c76530a6b29be21332b /sim/sh/gencode.c
parented4d32c28adc5f00ee9bc0e4ac785eeff5e1dc74 (diff)
downloadgdb-02131c7ff660a5ca08147899429e6e7780d737aa.zip
gdb-02131c7ff660a5ca08147899429e6e7780d737aa.tar.gz
gdb-02131c7ff660a5ca08147899429e6e7780d737aa.tar.bz2
sim: sh: fix broken handling in DSR reg
A missing */ caused a case statement to be incorrect masked out which also hide an error where the wrong value was being checked. Fix both.
Diffstat (limited to 'sim/sh/gencode.c')
-rw-r--r--sim/sh/gencode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/sh/gencode.c b/sim/sh/gencode.c
index 0fb1b87..bcaeb6c 100644
--- a/sim/sh/gencode.c
+++ b/sim/sh/gencode.c
@@ -3359,11 +3359,11 @@ ppi_gensim (void)
printf (" DSR |= res_grd >> 7 & 1;\n");
printf (" case 2: /* Zero Value Mode */\n");
printf (" DSR |= DSR >> 6 & 1;\n");
- printf (" case 3: /* Overflow mode\n");
+ printf (" case 3: /* Overflow mode */\n");
printf (" DSR |= overflow >> 4;\n");
printf (" case 4: /* Signed Greater Than Mode */\n");
printf (" DSR |= DSR >> 7 & 1;\n");
- printf (" case 4: /* Signed Greater Than Or Equal Mode */\n");
+ printf (" case 5: /* Signed Greater Than Or Equal Mode */\n");
printf (" DSR |= greater_equal >> 7;\n");
printf (" }\n");
printf (" assign_z:\n");