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

10 lines
124 B
C

#define TRACE (*(unsigned char *)0x40000000)
void main(void) {
TRACE = 'H';
TRACE = 'e';
asm volatile ("ecall");
}