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

10 lines
123 B
C

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