URL
https://opencores.org/ocsvn/or1k_old/or1k_old/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 697 |
Rev 698 |
Line 42... |
Line 42... |
/* activate printf support in simulator */
|
/* activate printf support in simulator */
|
void printf(const char *fmt, ...)
|
void printf(const char *fmt, ...)
|
{
|
{
|
va_list args;
|
va_list args;
|
va_start(args, fmt);
|
va_start(args, fmt);
|
asm("l.addi\tr3,%0,0": :"r" (fmt));
|
|
asm("l.addi\tr4,%0,0": :"r" (args));
|
|
__asm__ __volatile__ ("l.nop %0": :"K" (NOP_PRINTF), "r" (fmt), "r" (args));
|
__asm__ __volatile__ ("l.nop %0": :"K" (NOP_PRINTF), "r" (fmt), "r" (args));
|
}
|
}
|
|
|
/* print long */
|
/* print long */
|
void report(unsigned long value)
|
void report(unsigned long value)
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.