gem5/dev
Nathan Binkert b881408ed7 Clean up the Range class and associated usages. The code was
never clear about whether the end of the range was inclusive
or exclusive.  Make it inclusive, but also provide a RangeSize()
function that will generate a Range based on a start and a size.
This, in combination with using the comparison operators, makes
almost all usages of the range not care how it is stored.

base/range.cc:
    Make the end of the range inclusive.

    start/end -> first/last
    (end seems too much like end() in stl)
base/range.hh:
    Make the end of the range inclusive.

    Fix all comparison operators so that they work correctly with
    an inclusive range.  Also, when comparing one range to another
    with <, <=, >, >=, we only look at the beginning of the range
    beacuse x <= y should be the same as x < y || x == y.  (This wasn't
    the case before.)

    Add a few functions for making a range:
    RangeSize is start and size
    RangeEx is start and end where end is exclusive
    RangeIn is start and end where end is inclusive

    start/end -> first/last
    (end seems too much like end() in stl)
dev/alpha_console.cc:
dev/baddev.cc:
dev/ide_ctrl.cc:
dev/ns_gige.cc:
dev/pciconfigall.cc:
dev/pcidev.cc:
dev/tsunami_cchip.cc:
dev/tsunami_io.cc:
dev/tsunami_pchip.cc:
dev/uart.cc:
    Use the RangeSize function to create a range.

--HG--
extra : convert_revision : 29a7eb7fce745680f1c77fefff456c2144bc3994
2004-10-22 01:34:40 -04:00
..
alpha_access.h - Whack unused code 2004-02-09 10:49:48 -05:00
alpha_console.cc Clean up the Range class and associated usages. The code was 2004-10-22 01:34:40 -04:00
alpha_console.hh allow the use of old console code and update elf_object not to rely on EM_ALPHA value. 2004-06-27 14:33:55 -04:00
baddev.cc Clean up the Range class and associated usages. The code was 2004-10-22 01:34:40 -04:00
baddev.hh Fixes for detailed boot, made cttz and ctlz instructions more compact, 2004-06-10 13:30:58 -04:00
disk_image.cc store the checkpoint to the proper directory 2004-07-08 15:59:46 -04:00
disk_image.hh Updated Copyright with information in bitkeeper changelogs 2004-06-08 13:37:27 -04:00
etherbus.cc Updated Copyright with information in bitkeeper changelogs 2004-06-08 13:37:27 -04:00
etherbus.hh Updated Copyright with information in bitkeeper changelogs 2004-06-08 13:37:27 -04:00
etherdump.cc Clean up/standardize handling of various output files. 2004-10-19 20:00:20 -04:00
etherdump.hh Clean up/standardize handling of various output files. 2004-10-19 20:00:20 -04:00
etherint.cc Updated Copyright with information in bitkeeper changelogs 2004-06-08 13:37:27 -04:00
etherint.hh Updated Copyright with information in bitkeeper changelogs 2004-06-08 13:37:27 -04:00
etherlink.cc Clean up network header stuff and make it more generic. Use 2004-09-20 10:43:53 -04:00
etherlink.hh notify the transmitter when the packet has finished transmitting. 2004-07-23 00:05:29 -04:00
etherpkt.cc a bit more cleaning of the network header wrappers. 2004-09-21 01:41:55 -04:00
etherpkt.hh a bit more cleaning of the network header wrappers. 2004-09-21 01:41:55 -04:00
ethertap.cc Clean up network header stuff and make it more generic. Use 2004-09-20 10:43:53 -04:00
ethertap.hh Clean up network header stuff and make it more generic. Use 2004-09-20 10:43:53 -04:00
ide_ctrl.cc Clean up the Range class and associated usages. The code was 2004-10-22 01:34:40 -04:00
ide_ctrl.hh make the cache access latency a parameter that is based on bus 2004-07-12 22:58:22 -04:00
ide_disk.cc Remove second pciToDma translation on current PRD address pointer b/c 2004-07-09 22:32:27 -04:00
ide_disk.hh Fix to properly shadow the DEV bit in the Drive/Head register so other 2004-06-23 15:37:05 -04:00
io_device.cc make the cache access latency a parameter that is based on bus 2004-07-12 22:58:22 -04:00
io_device.hh make the cache access latency a parameter that is based on bus 2004-07-12 22:58:22 -04:00
ns_gige.cc Clean up the Range class and associated usages. The code was 2004-10-22 01:34:40 -04:00
ns_gige.hh Clean up network header stuff and make it more generic. Use 2004-09-20 10:43:53 -04:00
ns_gige_reg.h cleanup interrupt code for gigabit device 2004-08-11 10:14:26 -04:00
pciconfigall.cc Clean up the Range class and associated usages. The code was 2004-10-22 01:34:40 -04:00
pciconfigall.hh make the cache access latency a parameter that is based on bus 2004-07-12 22:58:22 -04:00
pcidev.cc Clean up the Range class and associated usages. The code was 2004-10-22 01:34:40 -04:00
pcidev.hh Updated copyright on Tsunami and kern/linux files. 2004-06-04 13:43:50 -04:00
pcireg.h minor mods for mimicking NS83820 functionality 2004-06-12 14:24:20 -04:00
platform.cc Updated copyright on Tsunami and kern/linux files. 2004-06-04 13:43:50 -04:00
platform.hh rewrote uart and renamed console.cc to simconsole to reduce confusion 2004-06-26 21:26:28 -04:00
simconsole.cc Clean up/standardize handling of various output files. 2004-10-19 20:00:20 -04:00
simconsole.hh Clean up/standardize handling of various output files. 2004-10-19 20:00:20 -04:00
simple_disk.cc Updated Copyright with information in bitkeeper changelogs 2004-06-08 13:37:27 -04:00
simple_disk.hh Updated Copyright with information in bitkeeper changelogs 2004-06-08 13:37:27 -04:00
tsunami.cc rewrote uart and renamed console.cc to simconsole to reduce confusion 2004-06-26 21:26:28 -04:00
tsunami.hh Updated copyright on Tsunami and kern/linux files. 2004-06-04 13:43:50 -04:00
tsunami_cchip.cc Clean up the Range class and associated usages. The code was 2004-10-22 01:34:40 -04:00
tsunami_cchip.hh make the cache access latency a parameter that is based on bus 2004-07-12 22:58:22 -04:00
tsunami_io.cc Clean up the Range class and associated usages. The code was 2004-10-22 01:34:40 -04:00
tsunami_io.hh make the cache access latency a parameter that is based on bus 2004-07-12 22:58:22 -04:00
tsunami_pchip.cc Clean up the Range class and associated usages. The code was 2004-10-22 01:34:40 -04:00
tsunami_pchip.hh make the cache access latency a parameter that is based on bus 2004-07-12 22:58:22 -04:00
tsunamireg.h rewrote uart and renamed console.cc to simconsole to reduce confusion 2004-06-26 21:26:28 -04:00
uart.cc Clean up the Range class and associated usages. The code was 2004-10-22 01:34:40 -04:00
uart.hh std:: 2004-08-11 09:05:13 -04:00