Unicorn interface working with test app in 32bit and 64bit builds.
This commit is contained in:
@ -2375,7 +2375,11 @@ static int tcg_reg_alloc_call(TCGContext *s, const TCGOpDef *def,
|
||||
flags = args[nb_oargs + nb_iargs + 1];
|
||||
|
||||
nb_regs = ARRAY_SIZE(tcg_target_call_iarg_regs);
|
||||
if (nb_regs > nb_params) {
|
||||
#if TCG_TARGET_REG_BITS == 32
|
||||
// do this because msvc cannot have arrays with 0 entries.
|
||||
nb_regs = 0;
|
||||
#endif
|
||||
if (nb_regs > nb_params) {
|
||||
nb_regs = nb_params;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user