2004-01-27 Michael Snyder <msnyder@redhat.com>

* gencode.c: Comment and whitespace clean-ups.
This commit is contained in:
Michael Snyder 2004-01-27 23:23:57 +00:00
parent 63ff5125e3
commit 4ae0cff4ca
2 changed files with 22 additions and 19 deletions

View File

@ -1,3 +1,7 @@
2004-01-27 Michael Snyder <msnyder@redhat.com>
* gencode.c: Comment and whitespace clean-ups.
2004-01-07 Michael Snyder <msnyder@redhat.com>
* gencode.c: Whitespace cleanup.

View File

@ -4,7 +4,7 @@
Written by Steve Chamberlain of Cygnus Support.
sac@cygnus.com
This file is part of SH sim
This file is part of SH sim.
THIS SOFTWARE IS NOT COPYRIGHTED
@ -20,7 +20,7 @@
*/
/* This program generates the opcode table for the assembler and
the simulator code
the simulator code.
-t prints a pretty table for the assembler manual
-s generates the simulator code jump table
@ -443,7 +443,8 @@ op tab[] =
"}",
},
/* sh4: See fmov instructions above for move to/from extended fp registers */
/* sh4:
See fmov instructions above for move to/from extended fp registers. */
/* sh2e */
{ "", "", "fmul <FREG_M>,<FREG_N>", "1111nnnnmmmm0010",
@ -2262,8 +2263,6 @@ gengastab ()
{
printf ("%s %-30s\n", p->code, p->name);
}
}
static unsigned char table[1 << 16];
@ -2643,7 +2642,7 @@ gensim_caselist (p)
printf (" TL (n);\n");
{
/* Do the refs */
/* Do the refs. */
char *r;
for (r = p->refs; *r; r++)
{
@ -2666,7 +2665,7 @@ gensim_caselist (p)
printf (" }\n");
{
/* Do the defs */
/* Do the defs. */
char *r;
for (r = p->defs; *r; r++)
{
@ -2975,12 +2974,12 @@ main (ac, av)
int ac;
char **av;
{
/* verify the table before anything else */
/* Verify the table before anything else. */
{
op *p;
for (p = tab; p->name; p++)
{
/* check that the code field contains 16 bits */
/* Check that the code field contains 16 bits. */
if (strlen (p->code) != 16)
{
fprintf (stderr, "Code `%s' length wrong (%d) for `%s'\n",
@ -2990,7 +2989,7 @@ main (ac, av)
}
}
/* now generate the requested data */
/* Now generate the requested data. */
if (ac > 1)
{
if (strcmp (av[1], "-t") == 0)