> compile NEMU

221220000 张三
Linux zzy 5.15.146.1-microsoft-standard-WSL2 #1 SMP Thu Jan 11 04:09:03 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
 00:13:16 up 2 days, 14:27,  1 user,  load average: 1.29, 1.24, 1.06
This commit is contained in:
tracer-ics2023
2024-09-15 00:13:16 +08:00
committed by zzy
parent a8e46c946c
commit 346e05bc21
2 changed files with 5 additions and 1 deletions

View File

@ -9,7 +9,7 @@
extern "C" {
#endif
#define __NATIVE_USE_KLIB__
//#define __NATIVE_USE_KLIB__
// string.h
void *memset (void *s, int c, size_t n);

View File

@ -1,5 +1,7 @@
#include <klib.h>
#if !defined(__ISA_NATIVE__) || defined(__NATIVE_USE_KLIB__)
int num_to_ascii(int num, int power, int size, char *buf) {
if (size <= 1) {
return 0;
@ -80,3 +82,5 @@ int rvsnprintf(char* out, size_t n, const char* fmt, va_list ap) {
*out = '\0';
return ret;
}
#endif