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

10 lines
123 B
C
Raw Normal View History

2018-10-07 04:19:29 +08:00
#define TRACE (*(unsigned char *)0x40000000)
2019-01-14 01:20:02 +08:00
int main(void) {
2018-10-07 04:19:29 +08:00
TRACE = 'H';
TRACE = 'e';
2018-11-20 00:22:18 +08:00
asm volatile ("ecall");
2018-10-07 04:19:29 +08:00
}