#
12335:4a2fde008219 |
|
03-Dec-2017 |
Gabe Black <gabeblack@google.com> |
base: Rework the trie dump function to accept a different ostream.
It might often be useful to write output to cout when dumping a trie, but sometimes it might be useful to dump ot to something else like a string stream instead.
Change-Id: Iaa4ae772c902b7dbc753f320d1a7eb5fcd4a3db3 Reviewed-on: https://gem5-review.googlesource.com/6266 Reviewed-by: Brandon Potter <Brandon.Potter@amd.com> Maintainer: Gabe Black <gabeblack@google.com>
|
#
12334:e0ab29a34764 |
|
30-Nov-2017 |
Gabe Black <gabeblack@google.com> |
misc: Rename misc.(hh|cc) to logging.(hh|cc)
These files aren't a collection of miscellaneous stuff, they're the definition of the Logger interface, and a few utility macros for calling into that interface (panic, warn, etc.).
Change-Id: I84267ac3f45896a83c0ef027f8f19c5e9a5667d1 Reviewed-on: https://gem5-review.googlesource.com/6226 Reviewed-by: Brandon Potter <Brandon.Potter@amd.com> Maintainer: Gabe Black <gabeblack@google.com>
|
#
12332:2adbc3f0f65a |
|
29-Nov-2017 |
Gabe Black <gabeblack@google.com> |
tests: Remove trietest's dependence on cprintf.
Dumping the structure of the tries being constructed was useful for debugging when the trie data structure was being developed, but the output can't be automatically verified easily, and what's considered correct depends on the specific implementation of the trie itself.
To make some of the earlier tests more meaningful, additional lookups were added which verified that the correct values were returned when the nodes of the trie were in particular arrangements.
Change-Id: Ib464ad1804d13fe40882da2190d7bf452da83818 Reviewed-on: https://gem5-review.googlesource.com/6223 Reviewed-by: Brandon Potter <Brandon.Potter@amd.com> Maintainer: Gabe Black <gabeblack@google.com>
|
#
8959:24b06cbf2d67 |
|
22-Apr-2012 |
Gabe Black <gblack@eecs.umich.edu> |
base: Include cassert in trie.hh.
trie.hh uses assert, but it wasn't explicitly including cassert.
|
#
8952:6188362beee1 |
|
15-Apr-2012 |
Gabe Black <gblack@eecs.umich.edu> |
sim: Update some comments in trie.hh that were meant to go in the last change.
|
#
8951:4347de090956 |
|
15-Apr-2012 |
Gabe Black <gblack@eecs.umich.edu> |
sim: A trie data structure specifically to speed up paging lookups.
This change adds a trie data structure which stores an arbitrary pointer type based on an address and a number of relevant bits. Then lookups can be done against the trie where the tree is traversed and the first legitimate match found is returned.
|