URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 937 |
Rev 939 |
Line 33... |
Line 33... |
|
|
FILE *flog;
|
FILE *flog;
|
int cuc_debug = 0;
|
int cuc_debug = 0;
|
|
|
/* Last used registers by software convention */
|
/* Last used registers by software convention */
|
const int call_saved[MAX_REGS] = {
|
/* Note that r11 is caller saved register, and we can destroy it.
|
|
Due to CUC architecture we must always return something, even garbage (so that
|
|
caller knows, we are finished, when we send acknowledge).
|
|
In case r11 was not used (trivial register assignment) we will remove it later,
|
|
but if we assigned a value to it, it must not be removed, so caller_saved[11] = 0 */
|
|
const int caller_saved[MAX_REGS] = {
|
0, 0, 0, 1, 1, 1, 1, 1,
|
0, 0, 0, 1, 1, 1, 1, 1,
|
1, 1, 0, 1, 0, 1, 0, 1,
|
1, 1, 0, 0, 0, 1, 0, 1,
|
0, 1, 0, 1, 0, 1, 0, 1,
|
0, 1, 0, 1, 0, 1, 0, 1,
|
0, 1, 0, 1, 0, 1, 0, 1,
|
0, 1, 0, 1, 0, 1, 0, 1,
|
1, 1};
|
1, 1};
|
|
|
/* returns log2(x) */
|
/* returns log2(x) */
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.