tcg: make tcg_const_ptr actually accept a pointer argument
commit73f5e3132a18654caa9705e3e8c7688f615f8c7d
authorPeter Maydell <peter.maydell@linaro.org>
Sat, 10 Dec 2011 16:35:31 +0000 (10 16:35 +0000)
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Wed, 14 Dec 2011 11:13:03 +0000 (14 11:13 +0000)
treed4b21d6aaa926d5aec99b66fbf35912e8ad3be8b
parente7d81004e486b0e80a674d164d8aec0e83fa812f
tcg: make tcg_const_ptr actually accept a pointer argument

Make tcg_const_ptr() include a cast so that you can pass it a
pointer. This allows us to drop the casts we had in all the places
that use this macro.

Acked-by: Andreas Färber <andreas.faerber@web.de>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
tcg/tcg-op.h
tcg/tcg.h