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.
This commit is contained in:
parent
ed4d32c28a
commit
02131c7ff6
@ -1,3 +1,7 @@
|
||||
2015-03-28 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* gencode.c (ppi_gensim): Add missing */. Change case 4 to case 5.
|
||||
|
||||
2015-03-28 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* Makefile.in (gencode): Add $(BUILD_CFLAGS), $(BUILD_LDFLAGS),
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user