Commit 0115be31ce7ba6fe59972082b21360ca0991971c
1 parent
db7287ed
Fix opparam_buf size estimate.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3959 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
3 additions
and
1 deletions
exec-all.h
... | ... | @@ -31,10 +31,12 @@ struct TranslationBlock; |
31 | 31 | |
32 | 32 | /* XXX: make safe guess about sizes */ |
33 | 33 | #define MAX_OP_PER_INSTR 32 |
34 | +/* A Call op needs up to 6 + 2N parameters (N = number of arguments). */ | |
35 | +#define MAX_OPC_PARAM 10 | |
34 | 36 | #define OPC_BUF_SIZE 512 |
35 | 37 | #define OPC_MAX_SIZE (OPC_BUF_SIZE - MAX_OP_PER_INSTR) |
36 | 38 | |
37 | -#define OPPARAM_BUF_SIZE (OPC_BUF_SIZE * 3) | |
39 | +#define OPPARAM_BUF_SIZE (OPC_BUF_SIZE * MAX_OPC_PARAM) | |
38 | 40 | |
39 | 41 | extern target_ulong gen_opc_pc[OPC_BUF_SIZE]; |
40 | 42 | extern target_ulong gen_opc_npc[OPC_BUF_SIZE]; | ... | ... |