1.1 --- a/memory/region.cc Sun Apr 11 19:34:07 2021 +0200
1.2 +++ b/memory/region.cc Mon Apr 12 00:12:51 2021 +0200
1.3 @@ -23,7 +23,7 @@
1.4 /* Initialise a region having the given 'start' and 'end' addresses, with the
1.5 'end' being one location beyond the last address in the region. */
1.6
1.7 -Region::Region(offset_t start, offset_t end)
1.8 +Region::Region(address_t start, address_t end)
1.9 : start(start), end(end), state(end - start)
1.10 {
1.11 /* Content state. */
1.12 @@ -36,7 +36,7 @@
1.13 free((void *) start);
1.14 }
1.15
1.16 -offset_t Region::size()
1.17 +length_t Region::size()
1.18 {
1.19 return end - start;
1.20 }
1.21 @@ -64,7 +64,7 @@
1.22
1.23 /* Simulation methods. */
1.24
1.25 -char *Region::read(offset_t offset)
1.26 +char *Region::read(length_t offset)
1.27 {
1.28 if (offset < size())
1.29 return (char *) start + offset;
1.30 @@ -72,7 +72,7 @@
1.31 return NULL;
1.32 }
1.33
1.34 -void Region::write(const char *data, offset_t offset)
1.35 +void Region::write(const char *data, length_t offset)
1.36 {
1.37 size_t length = strlen(data);
1.38