risc-v-tlm/tests/C/trace2/trace2.c

13 lines
150 B
C

#define TRACE (*(unsigned char *)0x40000000)
int main(void) {
int i;
for(i=0;i<10;i++) {
TRACE = 'a' + i;
}
asm volatile ("ecall");
}