]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Make HReg a struct. In the past there were several occurences where
authorFlorian Krohm <florian@eich-krohm.de>
Mon, 11 Feb 2013 00:47:35 +0000 (00:47 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Mon, 11 Feb 2013 00:47:35 +0000 (00:47 +0000)
commita87a4d1bfd34ea62ec02951073cfb8e5abc4cbc4
tree177f07e9c2c984979f00d475cdf5b5d7891f4513
parentdc3e6eb7b48558fb9a1760238e9c18b21a45bafa
Make HReg a struct. In the past there were several occurences where
a HReg was assigned to an integer. This worked by accident because the
bits representing the register number (which was meant to be accessed)
happened to be in the right place.
Two new functions: hregIsInvalid and sameHReg.
The HReg struct just wraps the integer that was previously used to
represent a register without changing the encoding.

git-svn-id: svn://svn.valgrind.org/vex/trunk@2682
13 files changed:
VEX/priv/host_amd64_defs.c
VEX/priv/host_amd64_isel.c
VEX/priv/host_arm_isel.c
VEX/priv/host_generic_reg_alloc2.c
VEX/priv/host_generic_regs.c
VEX/priv/host_generic_regs.h
VEX/priv/host_mips_isel.c
VEX/priv/host_ppc_defs.c
VEX/priv/host_ppc_isel.c
VEX/priv/host_s390_defs.c
VEX/priv/host_s390_isel.c
VEX/priv/host_x86_defs.c
VEX/priv/host_x86_isel.c