diff options
author | Mike Frysinger <vapier@gentoo.org> | 2015-12-25 06:03:22 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2015-12-25 06:10:03 -0500 |
commit | 34cf511206839b0f2b76870bf2d487c2dbcdbc1f (patch) | |
tree | 872ad4af249e7a2354c6e385c0eeb8967f489163 /sim/cris/sim-if.c | |
parent | 13e49fd6364e94625985b9eb15da5b1decd6a196 (diff) | |
download | gdb-34cf511206839b0f2b76870bf2d487c2dbcdbc1f.zip gdb-34cf511206839b0f2b76870bf2d487c2dbcdbc1f.tar.gz gdb-34cf511206839b0f2b76870bf2d487c2dbcdbc1f.tar.bz2 |
sim: cris: migrate from WITH_DEVICES to WITH_HW
The cris port was using the device framework to handle two addresses when
the --cris-900000xx flag was specified. That can be implemented using the
newer hardware framework instead which allows us to drop the device logic
entirely, as well as delete the tconfig.h file. Basically we create a new
cris_900000xx device model and move the read logic out of devices.c and
into that. The rest of the devices logic was callback to the hardware
framework already.
Diffstat (limited to 'sim/cris/sim-if.c')
-rw-r--r-- | sim/cris/sim-if.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/sim/cris/sim-if.c b/sim/cris/sim-if.c index 115ff21..3e04655 100644 --- a/sim/cris/sim-if.c +++ b/sim/cris/sim-if.c @@ -977,18 +977,7 @@ sim_open (SIM_OPEN_KIND kind, host_callback *callback, struct bfd *abfd, /* Allocate simulator I/O managed memory if none specified by user. */ if (cris_have_900000xxif) - { - if (sim_core_read_buffer (sd, NULL, read_map, &c, 0x90000000, 1) == 0) - sim_core_attach (sd, NULL, 0, access_write, 0, 0x90000000, 0x100, - 0, &cris_devices, NULL); - else - { - (*callback-> - printf_filtered) (callback, - "Seeing --cris-900000xx with memory defined there\n"); - goto abandon_chip; - } - } + sim_hw_parse (sd, "/core/%s/reg %#x %i", "cris_900000xx", 0x90000000, 0x100); /* Establish any remaining configuration options. */ if (sim_config (sd) != SIM_RC_OK) |