[sw] minor fix

This commit is contained in:
stnolting 2023-05-18 11:32:16 +02:00
parent e2e3d1202b
commit bbde15c485

View file

@ -113,7 +113,7 @@ int main() {
char_buffer = (char *) malloc(4 * sizeof(char)); // 4 bytes
// do not test read & write in simulation as there would be no UART RX input
if (NEORV32_SYSINFO->SOC & (1<<SYSINFO_SOC_IS_SIM)) {
if (neorv32_cpu_csr_read(CSR_MXISA) & (1 << CSR_MXISA_IS_SIM)) {
neorv32_uart0_printf("Skipping <read> & <write> tests as this seems to be a simulation.\n");
}
else {