Skip to content

Commit

Permalink
[emurt] fix misaligned address write
Browse files Browse the repository at this point in the history
Signed-off-by: Avimitin <[email protected]>
  • Loading branch information
Avimitin authored and sequencer committed Jan 11, 2025
1 parent 83407d5 commit 1b26600
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/emurt/emurt.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#define UART_W_REG 0x10000010
#define PERF_REG 0x10000014

void t1_put_char(char c) { *(uint8_t volatile *)(UART_W_REG) = (uint8_t)c; }
void t1_put_char(char c) { *(uint32_t volatile *)(UART_W_REG) = (uint8_t)c; }
void place_counter(int i) { *(int volatile *)(PERF_REG) = i; }

///////////////////////
Expand Down

0 comments on commit 1b26600

Please sign in to comment.