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

13 lines
151 B
C
Raw Normal View History

2018-10-07 04:19:29 +08:00
#define TRACE (*(unsigned char *)0x40000000)
void main(void) {
int i;
for(i=0;i<10;i++) {
TRACE = 'a' + i;
}
2018-11-20 00:22:18 +08:00
asm volatile ("ecall");
2018-10-07 04:19:29 +08:00
}