[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Question on --enable-profile
From: |
Zhang, Qiang |
Subject: |
Question on --enable-profile |
Date: |
Wed, 16 Sep 2020 07:41:08 +0000 |
I have some questions for you, when add "--enable-profile" options to compile
qemu
there are some error:
include/qemu/compiler.h:93:36: error: static assertion failed: "not expecting:
sizeof(*&s->prof.del_op_count) > ATOMIC_REG_SIZE"
93 | #define QEMU_BUILD_BUG_MSG(x, msg) _Static_assert(!(x), msg)
| ^~~~~~~~~~~~~~
qemu v5.1.0, compiler is i686-wrs-linux-gcc with -m32
I see del_op_count is int64_t
typedef struct TCGProfile {
int64_t cpu_exec_time;
int64_t tb_count1;
int64_t tb_count;
int64_t op_count; /* total insn count */
int op_count_max; /* max insn per TB */
int temp_count_max;
int64_t temp_count;
int64_t del_op_count;
int64_t code_in_len;
int64_t code_out_len;
int64_t search_out_len;
int64_t interm_time;
int64_t code_time;
int64_t la_time;
int64_t opt_time;
int64_t restore_count;
int64_t restore_time;
int64_t table_op_count[NB_OPS];
} TCGProfile;
#if defined(__x86_64__) || defined(__sparc__) || defined(__mips64)
# define ATOMIC_REG_SIZE 8
#else
# define ATOMIC_REG_SIZE sizeof(void *)
#endif
when I compile with -m32 sizeof(*&s->prof.del_op_count) > ATOMIC_REG_SIZE
trigger error.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Question on --enable-profile,
Zhang, Qiang <=