From patchwork Wed May 4 12:09:30 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [01/13] tcg: extend max tcg opcodes when using 64-on-32bit Date: Wed, 04 May 2011 02:09:30 -0000 From: Alexander Graf X-Patchwork-Id: 94016 Message-Id: <1304510982-30810-2-git-send-email-agraf@suse.de> To: QEMU-devel Developers Cc: peter.maydell@linaro.org, jan.kiszka@siemens.com, Aurelien Jarno , Richard Henderson When running a 64 bit guest on a 32 bit host, we tend to use more TCG ops than on a 64 bit host. Reflect that in the reserved opcode amount constant. Signed-off-by: Alexander Graf --- v4 -> v5: - only increase MAX_OP_PER_INSTR when running 64-on-32 --- exec-all.h | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/exec-all.h b/exec-all.h index 7c2d29f..14b0895 100644 --- a/exec-all.h +++ b/exec-all.h @@ -43,7 +43,11 @@ typedef ram_addr_t tb_page_addr_t; typedef struct TranslationBlock TranslationBlock; /* XXX: make safe guess about sizes */ +#if (HOST_LONG_BITS == 32) && (TARGET_LONG_BITS == 64) +#define MAX_OP_PER_INSTR 128 +#else #define MAX_OP_PER_INSTR 96 +#endif #if HOST_LONG_BITS == 32 #define MAX_OPC_PARAM_PER_ARG 2