OpenCores
URL https://opencores.org/ocsvn/open8_urisc/open8_urisc/trunk

Subversion Repositories open8_urisc

[/] [open8_urisc/] [trunk/] [gnu/] [binutils/] [gas/] [config/] [tc-ns32k.c] - Diff between revs 16 and 163

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 16 Rev 163
Line 1894... Line 1894...
void
void
md_begin (void)
md_begin (void)
{
{
  /* Build a hashtable of the instructions.  */
  /* Build a hashtable of the instructions.  */
  const struct ns32k_opcode *ptr;
  const struct ns32k_opcode *ptr;
  const char *stat;
  const char *status;
  const struct ns32k_opcode *endop;
  const struct ns32k_opcode *endop;
 
 
  inst_hash_handle = hash_new ();
  inst_hash_handle = hash_new ();
 
 
  endop = ns32k_opcodes + sizeof (ns32k_opcodes) / sizeof (ns32k_opcodes[0]);
  endop = ns32k_opcodes + sizeof (ns32k_opcodes) / sizeof (ns32k_opcodes[0]);
  for (ptr = ns32k_opcodes; ptr < endop; ptr++)
  for (ptr = ns32k_opcodes; ptr < endop; ptr++)
    {
    {
      if ((stat = hash_insert (inst_hash_handle, ptr->name, (char *) ptr)))
      if ((status = hash_insert (inst_hash_handle, ptr->name, (char *) ptr)))
        /* Fatal.  */
        /* Fatal.  */
        as_fatal (_("Can't hash %s: %s"), ptr->name, stat);
        as_fatal (_("Can't hash %s: %s"), ptr->name, status);
    }
    }
 
 
  /* Some private space please!  */
  /* Some private space please!  */
  freeptr_static = (char *) malloc (PRIVATE_SIZE);
  freeptr_static = (char *) malloc (PRIVATE_SIZE);
}
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.