diff options
author | Michael Meissner <gnu@the-meissners.org> | 1996-04-17 20:09:36 +0000 |
---|---|---|
committer | Michael Meissner <gnu@the-meissners.org> | 1996-04-17 20:09:36 +0000 |
commit | d4d3c7adbb45714fb2d1ddc7a94627729bf0a82a (patch) | |
tree | 4770b119db1d5938bf458b014ea5e16693838448 /sim/ppc/hw_com.c | |
parent | 221d1e19de5852f4b176484cdbc17f0233702c82 (diff) | |
download | gdb-d4d3c7adbb45714fb2d1ddc7a94627729bf0a82a.zip gdb-d4d3c7adbb45714fb2d1ddc7a94627729bf0a82a.tar.gz gdb-d4d3c7adbb45714fb2d1ddc7a94627729bf0a82a.tar.bz2 |
update from Andrew
Diffstat (limited to 'sim/ppc/hw_com.c')
-rw-r--r-- | sim/ppc/hw_com.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/sim/ppc/hw_com.c b/sim/ppc/hw_com.c new file mode 100644 index 0000000..1153e1f --- /dev/null +++ b/sim/ppc/hw_com.c @@ -0,0 +1,23 @@ +static unsigned +hw_com_io_write_buffer_callback(device *me, + const void *source, + int space, + unsigned_word addr, + unsigned nr_bytes, + cpu *processor, + unsigned_word cia) +{ + hw_com_device *hw_com = (hw_com_device*)device_data(me); + unsigned_1 val = *(unsigned_1*)source; + + switch ((int)addr & hw_com_offset_mask) { + + default: + error("hw_com_write_callback() internal error\n"); + + } + + return nr_bytes; +} + +#endif /* _HW_COM_ */ |