URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Subversion Repositories or1k
Compare Revisions
- This comparison shows the changes necessary to convert path
/
- from Rev 574 to Rev 575
- ↔ Reverse comparison
Rev 574 → Rev 575
/trunk/or1ksim/testbench/cache.c
39,6 → 39,8
void jump_and_link(void) |
{ |
asm("_jalr:"); |
asm("l.jr\tr9"); |
asm("l.nop"); |
} |
|
void jump(void) |
53,7 → 55,7
/* Jump to that address */ |
asm("l.jr\t\tr3") ; |
/* Report that we succeeded */ |
asm("l.nop\t1"); |
asm("l.nop\t2"); |
} |
|
void copy_jr(unsigned long add) |
65,7 → 67,7
{ |
asm("l.movhi\tr11,hi(_jump_indx)" : :); |
asm("l.ori\tr11,r11,lo(_jump_indx)" : :); |
asm("l.jr\t\t%0" : : "r" (add) : "r11"); |
asm("l.jalr\t\t%0" : : "r" (add) : "r11", "r9"); |
asm("l.nop" : :); |
} |
|
266,6 → 268,8
This test can not be run on or1ksim. */ |
rc = ic_test(); |
report(rc); |
|
exit(0); |
|
return 0; |
} |