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/or1ksim
    from Rev 625 to Rev 673
    Reverse comparison

Rev 625 → Rev 673

/cpu/or32/or32.c
669,7 → 669,7
{
opc_pos--;
if (param_ch == *enc)
ret |= 1 << opc_pos;
ret |= 1UL << opc_pos;
}
enc++;
}
717,7 → 717,9
static unsigned long *
cover_insn (unsigned long *cur, int pass, unsigned int mask)
{
int best_first = 0, best_len = 0, i, last_match = -1, ninstr = 0;
int best_first = 0, last_match = -1, ninstr = 0;
unsigned int best_len = 0;
unsigned int i;
unsigned long cur_mask = mask;
unsigned long *next;
 
779,14 → 781,14
best_first, ninstr);
*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 < (1 << (unsigned long) best_len); i++)
for (i = 0; i < (1UL << (unsigned long) best_len); i++)
{
int j;
unsigned long *c;
892,7 → 894,7
}
cur->type = type | shr;
cur->data = mask;
arg &= ~(((1 << mask) - 1) << shr);
arg &= ~(((1UL << mask) - 1) << shr);
or32_debug (6, "|%08lX %08lX\n", cur->type, cur->data);
cur++;
num_cur_op++;
1101,7 → 1103,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. */
1156,7 → 1158,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.