[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 2/6] tcg: Always define all of the TCGOpcode enu
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH 2/6] tcg: Always define all of the TCGOpcode enum members. |
Date: |
Tue, 23 Aug 2011 18:11:53 +0100 |
On 17 August 2011 22:11, Richard Henderson <address@hidden> wrote:
> By always defining these symbols, we can eliminate a lot of ifdefs.
>
> To allow this to be checked reliably, the semantics of the
> TCG_TARGET_HAS_* macros must be changed from def/undef to true/false.
> This allows even more ifdefs to be removed, converting them into
> C if statements.
This breaks x86-64 hosts if built with --enable-debug:
address@hidden:~/git/qemu$ ./arm-softmmu/qemu-system-arm
Missing op definition for div_i32
Missing op definition for divu_i32
Missing op definition for rem_i32
Missing op definition for remu_i32
Missing op definition for deposit_i32
Missing op definition for add2_i32
Missing op definition for sub2_i32
Missing op definition for brcond2_i32
Missing op definition for mulu2_i32
Missing op definition for setcond2_i32
Missing op definition for andc_i32
Missing op definition for orc_i32
Missing op definition for eqv_i32
Missing op definition for nand_i32
Missing op definition for nor_i32
Missing op definition for div_i64
Missing op definition for divu_i64
Missing op definition for rem_i64
Missing op definition for remu_i64
Missing op definition for deposit_i64
Missing op definition for andc_i64
Missing op definition for orc_i64
Missing op definition for eqv_i64
Missing op definition for nand_i64
Missing op definition for nor_i64
/home/petmay01/git/qemu/tcg/tcg.c:1148: tcg fatal error
Aborted
A compile-time check that the tcg target has #defined all the
TCG_TARGET_HAS_foo to 0/1 and not left any undefined might be
useful?
[thanks to mmu_man on irc for the report.]
-- PMM
- [Qemu-devel] [PATCH 0/6] TCG compile fixes and optimize cleanup, Richard Henderson, 2011/08/17
- [Qemu-devel] [PATCH 1/6] tcg: Add and use TCG_OPF_64BIT., Richard Henderson, 2011/08/17
- [Qemu-devel] [PATCH 3/6] tcg: Constant fold neg, andc, orc, eqv, nand, nor., Richard Henderson, 2011/08/17
- [Qemu-devel] [PATCH 4/6] tcg-hppa: Fix CPU_TEMP_BUF_NLONGS oversight., Richard Henderson, 2011/08/17
- [Qemu-devel] [PATCH 6/6] tcg-arm: Make tcg_out_addi inline, Richard Henderson, 2011/08/17
- [Qemu-devel] [PATCH 5/6] tcg-ia64: Fix typos in AREG0 setup in prologue., Richard Henderson, 2011/08/17
- [Qemu-devel] [PATCH 2/6] tcg: Always define all of the TCGOpcode enum members., Richard Henderson, 2011/08/17
- Re: [Qemu-devel] [PATCH 2/6] tcg: Always define all of the TCGOpcode enum members.,
Peter Maydell <=
Re: [Qemu-devel] [PATCH 0/6] TCG compile fixes and optimize cleanup, Blue Swirl, 2011/08/21