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

Subversion Repositories open8_urisc

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

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

Rev 16 Rev 165
Line 748... Line 748...
 
 
void
void
md_apply_fix (fixS *fixP, valueT * valP, segT seg)
md_apply_fix (fixS *fixP, valueT * valP, segT seg)
{
{
  unsigned char *where;
  unsigned char *where;
 
#if 0
  unsigned long insn;
  unsigned long insn;
 
#endif
  long value = *valP;
  long value = *valP;
 
 
  if (fixP->fx_addsy == (symbolS *) NULL)
  if (fixP->fx_addsy == (symbolS *) NULL)
    fixP->fx_done = 1;
    fixP->fx_done = 1;
 
 
Line 785... Line 787...
  if (fixP->fx_done)
  if (fixP->fx_done)
    {
    {
      /* Fetch the instruction, insert the fully resolved operand
      /* Fetch the instruction, insert the fully resolved operand
         value, and stuff the instruction back again.  */
         value, and stuff the instruction back again.  */
      where = (unsigned char *) fixP->fx_frag->fr_literal + fixP->fx_where;
      where = (unsigned char *) fixP->fx_frag->fr_literal + fixP->fx_where;
 
#if 0
      insn = bfd_getl16 (where);
      insn = bfd_getl16 (where);
 
#endif
      switch (fixP->fx_r_type)
      switch (fixP->fx_r_type)
        {
        {
        case BFD_RELOC_32:
        case BFD_RELOC_32:
          bfd_putl16 ((bfd_vma) value, where);
          bfd_putl16 ((bfd_vma) value, where);
          break;
          break;

powered by: WebSVN 2.1.0

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