mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
TCG op size estimation fix.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4154 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
663715fbe2
commit
a208e54a2f
3 changed files with 10 additions and 0 deletions
|
@ -36,6 +36,12 @@ struct TranslationBlock;
|
|||
#define OPC_BUF_SIZE 512
|
||||
#define OPC_MAX_SIZE (OPC_BUF_SIZE - MAX_OP_PER_INSTR)
|
||||
|
||||
/* Maximum size a TCG op can expand to. This is complicated because a
|
||||
single op may require several host instructions and regirster reloads.
|
||||
For now take a wild guess at 128 bytes, which should allow at least
|
||||
a couple of fixup instructions per argument. */
|
||||
#define TCG_MAX_OP_SIZE 128
|
||||
|
||||
#define OPPARAM_BUF_SIZE (OPC_BUF_SIZE * MAX_OPC_PARAM)
|
||||
|
||||
extern target_ulong gen_opc_pc[OPC_BUF_SIZE];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue