> compile NEMU

ysyx_22040000 李心杨
Linux calcite 6.6.19 #1-NixOS SMP PREEMPT_DYNAMIC Fri Mar  1 12:35:11 UTC 2024 x86_64 GNU/Linux
 20:06:14  up   7:12,  2 users,  load average: 1.98, 1.70, 1.22
This commit is contained in:
tracer-ysyx 2024-03-20 20:06:14 +08:00 committed by xinyangli
parent 9b3a6fd757
commit 694ddb57dc
5 changed files with 7 additions and 7 deletions

View file

@ -17,7 +17,6 @@
#define __COMMON_H__ #define __COMMON_H__
#include <stdint.h> #include <stdint.h>
#include <inttypes.h>
#include <stdbool.h> #include <stdbool.h>
#include <string.h> #include <string.h>

View file

@ -17,8 +17,12 @@
#define __DEBUG_H__ #define __DEBUG_H__
#include <stdio.h> #include <stdio.h>
#include <types.h>
#include <macro.h>
#include <utils.h> #include <utils.h>
IFDEF(CONFIG_ITRACE, void log_itrace_print());
#define Trace(format, ...) \ #define Trace(format, ...) \
_Log("[TRACE] " format "\n", ## __VA_ARGS__) _Log("[TRACE] " format "\n", ## __VA_ARGS__)

View file

@ -1,5 +1,7 @@
#ifndef __TYPES_H__ #ifndef __TYPES_H__
#define __TYPES_H__ #define __TYPES_H__
#include <inttypes.h>
#include <macro.h>
#if CONFIG_MBASE + CONFIG_MSIZE > 0x100000000ul #if CONFIG_MBASE + CONFIG_MSIZE > 0x100000000ul
#define PMEM64 1 #define PMEM64 1
#endif #endif

View file

@ -16,7 +16,7 @@
#ifndef __UTILS_H__ #ifndef __UTILS_H__
#define __UTILS_H__ #define __UTILS_H__
#include <common.h> #include <types.h>
// ----------- state ----------- // ----------- state -----------
@ -74,7 +74,4 @@ uint64_t get_time();
} while (0) } while (0)
IFDEF(CONFIG_ITRACE, void log_itrace_print());
#endif #endif

View file

@ -1,5 +1,3 @@
#include <debug.h>
#include <macro.h>
#include <assert.h> #include <assert.h>
#include <common.h> #include <common.h>
#include <elf.h> #include <elf.h>