File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 2727#include "sysemu/kvm.h"
2828#include "exec/exec-all.h"
2929
30+ #define SymExpr void*
31+ #include "RuntimeCommon.h"
32+
33+ static void init_env_exprs (MIPSCPU * cpu )
34+ {
35+ memset (cpu -> env_exprs , 0 , sizeof (cpu -> env_exprs ));
36+ _sym_register_expression_region (cpu -> env_exprs , sizeof (cpu -> env_exprs ));
37+ }
3038
3139static void mips_cpu_set_pc (CPUState * cs , vaddr value )
3240{
@@ -153,6 +161,8 @@ static void mips_cpu_realizefn(DeviceState *dev, Error **errp)
153161static void mips_cpu_initfn (Object * obj )
154162{
155163 MIPSCPU * cpu = MIPS_CPU (obj );
164+ init_env_exprs (cpu );
165+
156166 CPUMIPSState * env = & cpu -> env ;
157167 MIPSCPUClass * mcc = MIPS_CPU_GET_CLASS (obj );
158168
Original file line number Diff line number Diff line change @@ -1067,6 +1067,9 @@ struct MIPSCPU {
10671067
10681068 CPUNegativeOffsetState neg ;
10691069 CPUMIPSState env ;
1070+
1071+ /* space for symbolic expressions corresponding to env */
1072+ void * env_exprs [512 + 1 ]; /* TCG_MAX_TEMPS + 1 (for NULL) */
10701073};
10711074
10721075
You can’t perform that action at this time.
0 commit comments