summaryrefslogtreecommitdiff
path: root/sim/m68hc11/dv-m68hc11spi.c
diff options
context:
space:
mode:
authorStephane Carrez <stcarrez@nerim.fr>2000-08-11 18:44:59 +0000
committerStephane Carrez <stcarrez@nerim.fr>2000-08-11 18:44:59 +0000
commit18f619cd326d225aa9111da08a1edd0611cb806e (patch)
treefc354bfdfe805089db6db3dccf49a7bf4e452616 /sim/m68hc11/dv-m68hc11spi.c
parent243094bc673d934f22c54654330d640066fb5b65 (diff)
downloadgdb-18f619cd326d225aa9111da08a1edd0611cb806e.tar.gz
Use address mapping levels for 68hc11 simulator (kill overlap hack)
Diffstat (limited to 'sim/m68hc11/dv-m68hc11spi.c')
-rw-r--r--sim/m68hc11/dv-m68hc11spi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sim/m68hc11/dv-m68hc11spi.c b/sim/m68hc11/dv-m68hc11spi.c
index 42aaa7054de..96e73d2bc1d 100644
--- a/sim/m68hc11/dv-m68hc11spi.c
+++ b/sim/m68hc11/dv-m68hc11spi.c
@@ -113,7 +113,7 @@ static void
attach_m68hc11spi_regs (struct hw *me,
struct m68hc11spi *controller)
{
- hw_attach_address (hw_parent (me), 0, io_map,
+ hw_attach_address (hw_parent (me), M6811_IO_LEVEL, io_map,
M6811_SPI_FIRST_REG,
M6811_SPI_LAST_REG - M6811_SPI_FIRST_REG + 1,
me);
@@ -125,7 +125,6 @@ m68hc11spi_finish (struct hw *me)
struct m68hc11spi *controller;
controller = HW_ZALLOC (me, struct m68hc11spi);
- me->overlap_mode_hw = 1;
set_hw_data (me, controller);
set_hw_io_read_buffer (me, m68hc11spi_io_read_buffer);
set_hw_io_write_buffer (me, m68hc11spi_io_write_buffer);