diff options
author | bd <bdunahu@operationnull.com> | 2025-03-05 14:20:15 -0500 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-03-05 14:20:15 -0500 |
commit | e296a3a6ab782cb80b7091324b41bb78db6d3906 (patch) | |
tree | af137790ab40290d1cc4e83f3261370c591512bc /inc/storage.h | |
parent | db158de830e4fd4ab20ef5d357e24147c7a9281d (diff) |
whitespace
Diffstat (limited to 'inc/storage.h')
-rw-r--r-- | inc/storage.h | 84 |
1 files changed, 42 insertions, 42 deletions
diff --git a/inc/storage.h b/inc/storage.h index bad9d10..1e512e2 100644 --- a/inc/storage.h +++ b/inc/storage.h @@ -5,55 +5,55 @@ #include <vector> enum Accessor { - MEMORY, - FETCH, - L1CACHE, + MEMORY, + FETCH, + L1CACHE, }; class Storage { public: - /** - * Write `data` into `address`. - * @param the source making the request. - * @param the data (hexadecimal) to write. - * @param the address to write to. - * @return a status code reflecting the state of the storage level. - */ - virtual Response * - write(Accessor accessor, signed int data, int address) = 0; - /** - * Get the data at `address`. - * @param the source making the request. - * @param the address being accessed. - * @return a status code reflecting the state of the storage level, and the - * data being returned. - */ - virtual Response *read(Accessor accessor, int address) = 0; - /** - * Sidedoor view of `lines` of memory starting at `base`. - * @param The base line to start getting memory from. - * @param The amount of lines to fetch. - * @return A matrix of data values, where each row is a line and each column - * is a word. - */ - virtual int **view(int base, int lines) = 0; + /** + * Write `data` into `address`. + * @param the source making the request. + * @param the data (hexadecimal) to write. + * @param the address to write to. + * @return a status code reflecting the state of the storage level. + */ + virtual Response * + write(Accessor accessor, signed int data, int address) = 0; + /** + * Get the data at `address`. + * @param the source making the request. + * @param the address being accessed. + * @return a status code reflecting the state of the storage level, and the + * data being returned. + */ + virtual Response *read(Accessor accessor, int address) = 0; + /** + * Sidedoor view of `lines` of memory starting at `base`. + * @param The base line to start getting memory from. + * @param The amount of lines to fetch. + * @return A matrix of data values, where each row is a line and each column + * is a word. + */ + virtual int **view(int base, int lines) = 0; protected: - /** - * The data currently stored in this level of storage. - */ - std::vector<std::array<unsigned int, 4>> *data; - /** - * A pointer to the next lowest level of storage. - * Used in case of cache misses. - */ - Storage *lower; - /** - * The number of clock cycles this level of storage takes to complete - * requests. - */ - int delay; + /** + * The data currently stored in this level of storage. + */ + std::vector<std::array<unsigned int, 4>> *data; + /** + * A pointer to the next lowest level of storage. + * Used in case of cache misses. + */ + Storage *lower; + /** + * The number of clock cycles this level of storage takes to complete + * requests. + */ + int delay; }; #endif /* STORAGE_H_INCLUDED */ |