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

Subversion Repositories or1k_old

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 497 to Rev 498
    Reverse comparison

Rev 497 → Rev 498

/trunk/or1ksim/cpu/or32/execute.c
974,13 → 974,13
void l_mac() {
sprword lo, hi;
LONGEST l;
long x, y;
LONGEST x, y;
cur->func_unit = it_mac;
lo = mfspr (SPR_MACLO);
hi = mfspr (SPR_MACHI);
x = eval_operand32(0, &breakpoint);
y = eval_operand32(1, &breakpoint);
//printf ("[%08x,%08x]\t", (unsigned long)(x), (unsigned long)(y));
printf ("[%08x,%08x]\t", (unsigned long)(x), (unsigned long)(y));
l = (ULONGEST)lo | ((LONGEST)hi << 32);
l += (LONGEST) x * (LONGEST) y;
 
989,7 → 989,7
hi = ((LONGEST)l) >> 32;
mtspr (SPR_MACLO, lo);
mtspr (SPR_MACHI, hi);
//printf ("(%08x,%08x)\n", hi, lo);
printf ("(%08x,%08x)\n", hi, lo);
}
void l_msb() {
sprword lo, hi;

powered by: WebSVN 2.1.0

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