diff options
| -rw-r--r-- | riscv/debug_module.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/riscv/debug_module.cc b/riscv/debug_module.cc index 410e0b3..c756704 100644 --- a/riscv/debug_module.cc +++ b/riscv/debug_module.cc @@ -38,7 +38,7 @@ static unsigned field_width(unsigned n) static bool region_descriptor_comparator(const region_descriptor &lhs, const region_descriptor &rhs) { - return lhs.addr < rhs.addr; + return lhs.addr < rhs.addr || (lhs.addr == rhs.addr && lhs.len < rhs.len); } template <typename It> |
