OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db7287e
)
Fix opparam_buf size estimate.
author
pbrook
<pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 3 Feb 2008 17:35:41 +0000
(17:35 +0000)
committer
pbrook
<pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 3 Feb 2008 17:35:41 +0000
(17:35 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3959
c046a42c
-6fe2-441c-8c8c-
71466251a162
exec-all.h
patch
|
blob
|
history
diff --git
a/exec-all.h
b/exec-all.h
index
cf72399
..
a35b7d6
100644
(file)
--- a/
exec-all.h
+++ b/
exec-all.h
@@
-31,10
+31,12
@@
struct TranslationBlock;
/* XXX: make safe guess about sizes */
#define MAX_OP_PER_INSTR 32
+/* A Call op needs up to 6 + 2N parameters (N = number of arguments). */
+#define MAX_OPC_PARAM 10
#define OPC_BUF_SIZE 512
#define OPC_MAX_SIZE (OPC_BUF_SIZE - MAX_OP_PER_INSTR)
-#define OPPARAM_BUF_SIZE (OPC_BUF_SIZE *
3
)
+#define OPPARAM_BUF_SIZE (OPC_BUF_SIZE *
MAX_OPC_PARAM
)
extern target_ulong gen_opc_pc[OPC_BUF_SIZE];
extern target_ulong gen_opc_npc[OPC_BUF_SIZE];