]> git.proxmox.com Git - qemu.git/commit
tcg/mips: fix invalid op definition errors
authorJames Hogan <james.hogan@imgtec.com>
Thu, 8 Aug 2013 14:40:23 +0000 (15:40 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Thu, 8 Aug 2013 21:06:02 +0000 (23:06 +0200)
commit85711e6bafb1910b50ff181e8507cb904ef7e84d
tree48c10f12ab0744e2e5b58d65f22bb7be6073a508
parent6fdf98f281f85ae6e2883bed2f691bcfe33b1f9f
tcg/mips: fix invalid op definition errors

tcg/mips/tcg-target.h defines various operations conditionally depending
upon the isa revision, however these operations are included in
mips_op_defs[] unconditionally resulting in the following runtime errors
if CONFIG_DEBUG_TCG is defined:

Invalid op definition for movcond_i32
Invalid op definition for rotl_i32
Invalid op definition for rotr_i32
Invalid op definition for deposit_i32
Invalid op definition for bswap16_i32
Invalid op definition for bswap32_i32
tcg/tcg.c:1196: tcg fatal error

Fix with ifdefs like the i386 backend does for movcond_i32.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Aurelien Jarno <aurelien@aurel32.net>
Cc: Richard Henderson <rth@twiddle.net>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
tcg/mips/tcg-target.c