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

Subversion Repositories openrisc

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /openrisc/trunk/orpsocv2/sw/utils
    from Rev 485 to Rev 673
    Reverse comparison

Rev 485 → Rev 673

/or32-idecode/or32-dis.c
29,7 → 29,7
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#define EXTEND28(x) ((x) & (unsigned long) 0x08000000 ? ((x) | (unsigned long) 0xf0000000) : ((x)))
#define EXTEND28(x) ((x) & 0x08000000UL ? ((x) | ~0x0fffffffUL) : ((x)))
 
/* Now find the four bytes of INSN_CH and put them in *INSN. */
 
101,7 → 101,7
{
opc_pos--;
if (param_ch == *enc)
ret |= 1 << opc_pos;
ret |= 1UL << opc_pos;
enc++;
}
else if (*enc == param_ch)
121,7 → 121,7
printf ("\n ret=%x opc_pos=%x, param_pos=%x\n",
ret, opc_pos, param_pos);
#endif
ret |= 0xffffffff << letter_range(param_ch);
ret |= -1L << letter_range(param_ch);
#if DEBUG
printf ("\n after conversion to signed: ret=%x\n", ret);
#endif
/or32-idecode/or32-opc.c
487,7 → 487,7
{
opc_pos--;
if (param_ch == *enc)
ret |= 1 << opc_pos;
ret |= 1UL << opc_pos;
}
enc++;
}
590,15 → 590,15
 
*cur = best_first;
cur++;
*cur = (1 << best_len) - 1;
*cur = (1UL << best_len) - 1;
cur++;
next = cur;
 
/* Allocate space for pointers. */
cur += 1 << best_len;
cur_mask = (1 << (unsigned long) best_len) - 1;
cur += 1UL << best_len;
cur_mask = (1UL << (unsigned long) best_len) - 1;
for (i = 0; i < ((unsigned) 1 << best_len); i++)
for (i = 0; i < (1U << best_len); i++)
{
unsigned int j;
unsigned long *c;
710,7 → 710,7
}
cur->type = type | shr;
cur->data = mask;
arg &= ~(((1 << mask) - 1) << shr);
arg &= ~(((1UL << mask) - 1) << shr);
debug (6, "|%08lX %08lX\n", cur->type, cur->data);
cur++;
num_cur_op++;
895,7 → 895,7
/* First truncate all bits above valid range for this letter
in case it is zero extend. */
letter_bits = letter_range (l);
mask = (1 << letter_bits) - 1;
mask = (1UL << letter_bits) - 1;
imm &= mask;
/* Do sign extend if this is the right one. */
947,7 → 947,7
{
opc_pos--;
if (param_ch == *enc)
ret |= 1 << opc_pos;
ret |= 1UL << opc_pos;
enc++;
}
else if (*enc == param_ch)

powered by: WebSVN 2.1.0

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