binutils-gdb/sim
Mike Frysinger 81c641e707 sim: cast away hw/device differences
When building with device and hw support, the sim-core code generates a
lot of build time warnings such as:

./../common/sim-core.c: In function 'sim_core_map_attach':
./../common/sim-core.c:198:7: warning: passing argument 1 of 'device_error' from incompatible pointer type
../common/sim-core.h:347:6: note: expected 'struct device *' but argument is of type 'struct hw *'
./../common/sim-core.c:235:7: warning: passing argument 1 of 'device_error' from incompatible pointer type
../common/sim-core.h:347:6: note: expected 'struct device *' but argument is of type 'struct hw *'

In reality, these two structures get cast back and forth in the core
code already and so are "compatible".  So tweak the three functions
that generate all of these warnings to include the casts automatically.
I know this isn't exactly clean, but the current device/hw ifdef
approach is full of landmines itself and I'm not entirely sure how
to unscrew it.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2010-11-23 02:45:29 +00:00
..
arm 2010-05-26 Ozkan Sezer <sezeroz@gmail.com> 2010-05-26 22:40:24 +00:00
avr sim: constify sim_write source buffer (part 2) 2010-04-14 07:38:06 +00:00
common sim: cast away hw/device differences 2010-11-23 02:45:29 +00:00
cr16 sim: constify sim_write source buffer (part 2) 2010-04-14 07:38:06 +00:00
cris Regenerate for bool -> bool_ change 2010-10-09 07:56:18 +00:00
d10v sim: constify sim_write source buffer (part 2) 2010-04-14 07:38:06 +00:00
erc32 Fix erc32 sim build failure due to missing stdint.h. 2010-05-20 23:10:24 +00:00
frv sim: profile: implement --profile-file backend 2010-04-22 00:40:44 +00:00
h8300 sim: constify sim_write source buffer (part 2) 2010-04-14 07:38:06 +00:00
igen Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
iq2000 Regenerate cgen-derived files. 2010-02-12 02:44:26 +00:00
lm32 Regenerate cgen-derived files. 2010-02-12 02:44:26 +00:00
m32c 2010-05-26 Ozkan Sezer <sezeroz@gmail.com> 2010-05-26 22:40:24 +00:00
m32r sim: update device_error() prototype 2010-03-30 20:38:26 +00:00
m68hc11 Sync Libtool from GCC. 2010-01-09 21:11:44 +00:00
mcore sim: constify sim_write source buffer (part 2) 2010-04-14 07:38:06 +00:00
microblaze sim: constify sim_write source buffer (part 2) 2010-04-14 07:38:06 +00:00
mips sim: constify sim_write source buffer (part 2) 2010-04-14 07:38:06 +00:00
mn10300 sim: mn10300: convert to new sockser status code 2010-04-19 19:03:28 +00:00
moxie sim: constify sim_write source buffer (part 2) 2010-04-14 07:38:06 +00:00
ppc sim: constify sim_write source buffer (part 2) 2010-04-14 07:38:06 +00:00
rx * rx.c (lsb_count): New. 2010-11-12 01:01:12 +00:00
sh sim: constify sim_write source buffer (part 2) 2010-04-14 07:38:06 +00:00
sh64 Regenerate for bool -> bool_ change 2010-10-09 07:56:18 +00:00
testsuite * sim/cris/c/seek3.c, sim/cris/c/seek4.c: New tests. 2010-10-06 23:41:20 +00:00
v850 sim: v850: fix build failure after watchpoint constification 2010-03-30 23:43:03 +00:00
ChangeLog * MAINTAINERS: Add self as RX maintainer. Sort list. 2010-07-28 21:56:16 +00:00
configure sim: unify target->subdir handling for default tests 2010-04-26 16:23:24 +00:00
configure.ac sim: unify target->subdir handling for default tests 2010-04-26 16:23:24 +00:00
configure.tgt sim: unify target->subdir handling for default tests 2010-04-26 16:23:24 +00:00
MAINTAINERS Sort *alphabetically* this time 2010-07-28 22:31:09 +00:00
Makefile.in Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
README-HACKING sim: add more hacking notes 2010-04-12 21:44:46 +00:00