|
From: <sv...@va...> - 2015-11-13 15:45:48
|
Author: petarj
Date: Fri Nov 13 15:45:38 2015
New Revision: 3203
Log:
mips: fix incorrect assert for hwcaps_host
Fix incorrect and incomplete assert condition for hwcaps_host in
iselSB_MIPS().
Spotted by Coverity and reported by Rhys Kidd.
Modified:
trunk/priv/host_mips_isel.c
Modified: trunk/priv/host_mips_isel.c
==============================================================================
--- trunk/priv/host_mips_isel.c (original)
+++ trunk/priv/host_mips_isel.c Fri Nov 13 15:45:38 2015
@@ -4171,9 +4171,10 @@
/* sanity ... */
vassert(arch_host == VexArchMIPS32 || arch_host == VexArchMIPS64);
- vassert(VEX_PRID_COMP_MIPS == hwcaps_host
- || VEX_PRID_COMP_BROADCOM == hwcaps_host
- || VEX_PRID_COMP_NETLOGIC);
+ vassert(VEX_PRID_COMP_MIPS == VEX_MIPS_COMP_ID(hwcaps_host)
+ || VEX_PRID_COMP_BROADCOM == VEX_MIPS_COMP_ID(hwcaps_host)
+ || VEX_PRID_COMP_NETLOGIC == VEX_MIPS_COMP_ID(hwcaps_host)
+ || VEX_PRID_COMP_CAVIUM == VEX_MIPS_COMP_ID(hwcaps_host));
/* Check that the host's endianness is as expected. */
vassert(archinfo_host->endness == VexEndnessLE
|