File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change 7
7
8
8
#include <stdint.h>
9
9
10
+ #include "common.h"
10
11
#include "riscv_private.h"
11
12
#include "utils.h"
12
13
@@ -56,20 +57,14 @@ typedef void (*exec_t2c_func_t)(riscv_t *);
56
57
#endif
57
58
58
59
#if RV32_HAS (JIT_CACHE )
59
- #if !defined(__x86_64__ ) && !defined(__aarch64__ )
60
- /* make sure LLVM can access the correct address of structure member */
61
- #error "The JIT-cache only supports 64-bit machine (LP64)."
62
- #endif
63
-
64
60
#define MAX_JIT_CACHE_TABLE_ENTRIES (1 << 12)
65
61
66
62
/* clang-format off */
67
63
struct jit_cache {
68
- __attribute__((aligned (4 ))) uint32_t pc ; /* program counter of ELF */
69
- __attribute__((aligned (4 ))) uint32_t from ; /* from whether t1c or t2c,
70
- easily to build LLVM IR
71
- because of the alignment
72
- */
64
+ __ALIGNED (4 ) uint32_t pc ; /* program counter of ELF */
65
+ __ALIGNED (4 ) uint32_t from ; /* from whether t1c or t2c, ensure the correct
66
+ alignment for accessing member in LLVM IR
67
+ */
73
68
void * entry ; /* entry of JIT-ed code */
74
69
};
75
70
/* clang-format on */
You can’t perform that action at this time.
0 commit comments