URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Subversion Repositories or1k
Compare Revisions
- This comparison shows the changes necessary to convert path
/
- from Rev 1690 to Rev 1691
- ↔ Reverse comparison
Rev 1690 → Rev 1691
/trunk/or1ksim/cpu/or32/op.c
141,13 → 141,16
if(addr) |
reg = dp->ts_bound[addr - 1]; |
|
if(reg & 0x1f) |
t0 = cpu_state.reg[reg & 0x1f]; |
t0 = cpu_state.reg[reg & 0x1f]; |
t1 = cpu_state.reg[(reg >> 5) & 0x1f]; |
|
if((reg >> 5) & 0x1f) |
t1 = cpu_state.reg[(reg >> 5) & 0x1f]; |
|
if((reg >> 10) & 0x1f) |
/* Don't we all love gcc? For some heavenly reason gcc 3.2 _knows_ that if I |
* don't put a condition around the assignment of t2, _all_ the assignments to |
* t{0,1,2} are useless and not needed. I'm pleasently happy that gcc is so |
* bright, but on the other hand, t{0,1,2} are globals (!) how can you assume |
* that the value of a global won't be used in a function further up or |
* further down the stack?? */ |
if(addr) |
t2 = cpu_state.reg[(reg >> 10) & 0x1f]; |
|
or_longjmp(dp->locs[addr]); |