diff options
author | Andreas Hansson <andreas.hansson@arm.com> | 2012-10-15 08:12:23 -0400 |
---|---|---|
committer | Andreas Hansson <andreas.hansson@arm.com> | 2012-10-15 08:12:23 -0400 |
commit | 93a159875aa081cf3452754b890d83ae7c2bf943 (patch) | |
tree | b9b1859ddcef2053f6a07c6ba7b446395686c023 /src/mem/cache/tags/iic_repl/repl.hh | |
parent | d52adc4eb68c2733f9af4ac68834583c0a555f9d (diff) | |
download | gem5-93a159875aa081cf3452754b890d83ae7c2bf943.tar.xz |
Fix: Address a few minor issues identified by cppcheck
This patch addresses a number of smaller issues identified by the code
inspection utility cppcheck. There are a number of identified leaks in
the arm/linux/system.cc (although the function only get's called once
so it is not a major problem), a few deletes in dev/x86/i8042.cc that
were not array deletes, and sprintfs where the character array had one
element less than needed. In the IIC tags there was a function
allocating an array of longs which is in fact never used.
Diffstat (limited to 'src/mem/cache/tags/iic_repl/repl.hh')
-rw-r--r-- | src/mem/cache/tags/iic_repl/repl.hh | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/mem/cache/tags/iic_repl/repl.hh b/src/mem/cache/tags/iic_repl/repl.hh index 51d8169e9..dd25842a0 100644 --- a/src/mem/cache/tags/iic_repl/repl.hh +++ b/src/mem/cache/tags/iic_repl/repl.hh @@ -79,13 +79,6 @@ class Repl : public SimObject virtual unsigned long getRepl() = 0; /** - * Return an array of N tag pointers to replace. - * @param n The number of tag pointer to return. - * @return An array of tag pointers to replace. - */ - virtual unsigned long *getNRepl(int n) = 0; - - /** * Update replacement data */ virtual void doAdvance(std::list<unsigned long> &demoted) = 0; |