Add support for displaying the ISA string on RISC-V CPUs

This commit is contained in:
Aaron Franke
2023-01-08 02:33:35 -06:00
parent ef18c8e3f7
commit 5cc17bc306
2 changed files with 48 additions and 4 deletions
+1 -1
View File
@@ -135,7 +135,7 @@ void ffPrintCharTimes(char c, uint32_t times)
char str[32];
memset(str, c, sizeof(str)); //2 instructions when compiling with AVX2 enabled
for(uint32_t i = sizeof(str); i <= times; i += sizeof(str))
for(uint32_t i = sizeof(str); i <= times; i += (uint32_t)sizeof(str))
fwrite(str, 1, sizeof(str), stdout);
uint32_t remaining = times % sizeof(str);
if(remaining > 0)