changeset 5b67e1bdf6ad in /z/repo/gem5 details: http://repo.gem5.org/gem5?cmd=changeset;node=5b67e1bdf6ad description: mips: Remove unused private members to fix compile-time warning
Certain versions of clang complain about unused private members if they are not used. This changeset removes such members from the MIPS-specific classes to silence the warning. diffstat: src/arch/mips/interrupts.hh | 6 ------ src/arch/mips/linux/system.hh | 39 --------------------------------------- src/arch/mips/stacktrace.hh | 2 -- src/arch/mips/tlb.cc | 15 --------------- src/dev/mips/malta_io.hh | 3 --- 5 files changed, 0 insertions(+), 65 deletions(-) diffs (122 lines): diff -r faa9dfc465ef -r 5b67e1bdf6ad src/arch/mips/interrupts.hh --- a/src/arch/mips/interrupts.hh Wed Aug 13 06:57:29 2014 -0400 +++ b/src/arch/mips/interrupts.hh Wed Aug 13 06:57:30 2014 -0400 @@ -59,7 +59,6 @@ Interrupts(Params * p) : SimObject(p) { - newInfoSet = false; } void @@ -127,11 +126,6 @@ { fatal("Unserialization of Interrupts Unimplemented for MIPS"); } - - private: - bool newInfoSet; - int newIpl; - int newSummary; }; } diff -r faa9dfc465ef -r 5b67e1bdf6ad src/arch/mips/linux/system.hh --- a/src/arch/mips/linux/system.hh Wed Aug 13 06:57:29 2014 -0400 +++ b/src/arch/mips/linux/system.hh Wed Aug 13 06:57:30 2014 -0400 @@ -87,45 +87,6 @@ Addr InitrdSize() const { return Param() + 0x108; } static const int CommandLineSize = 256; - private: -#ifndef NDEBUG - /** Event to halt the simulator if the kernel calls panic() */ - BreakPCEvent *kernelPanicEvent; - - /** Event to halt the simulator if the kernel calls die_if_kernel */ - BreakPCEvent *kernelDieEvent; -#endif - - /** - * Event to skip determine_cpu_caches() because we don't support - * the IPRs that the code can access to figure out cache sizes - */ - SkipFuncEvent *skipCacheProbeEvent; - - /** PC based event to skip the ide_delay_50ms() call */ - SkipFuncEvent *skipIdeDelay50msEvent; - - /** - * PC based event to skip the dprink() call and emulate its - * functionality - */ - Linux::DebugPrintkEvent *debugPrintkEvent; - - /** - * Skip calculate_delay_loop() rather than waiting for this to be - * calculated - */ - SkipDelayLoopEvent *skipDelayLoopEvent; - - /** - * Event to print information about thread switches if the trace flag - * Thread is set - */ - PrintThreadInfo *printThreadEvent; - - /** Grab the PCBB of the idle process when it starts */ - IdleStartEvent *idleStartEvent; - public: typedef LinuxMipsSystemParams Params; LinuxMipsSystem(Params *p); diff -r faa9dfc465ef -r 5b67e1bdf6ad src/arch/mips/stacktrace.hh --- a/src/arch/mips/stacktrace.hh Wed Aug 13 06:57:29 2014 -0400 +++ b/src/arch/mips/stacktrace.hh Wed Aug 13 06:57:30 2014 -0400 @@ -45,8 +45,6 @@ private: ThreadContext *tc; - int thread_info_size; - int task_struct_size; int task_off; int pid_off; int name_off; diff -r faa9dfc465ef -r 5b67e1bdf6ad src/arch/mips/tlb.cc --- a/src/arch/mips/tlb.cc Wed Aug 13 06:57:29 2014 -0400 +++ b/src/arch/mips/tlb.cc Wed Aug 13 06:57:30 2014 -0400 @@ -59,21 +59,6 @@ // MIPS TLB // -static inline mode_type -getOperatingMode(MiscReg Stat) -{ - if ((Stat & 0x10000006) != 0 || (Stat & 0x18) ==0) { - return mode_kernel; - } else if ((Stat & 0x18) == 0x8) { - return mode_supervisor; - } else if ((Stat & 0x18) == 0x10) { - return mode_user; - } else { - return mode_number; - } -} - - TLB::TLB(const Params *p) : BaseTLB(p), size(p->size), nlu(0) { diff -r faa9dfc465ef -r 5b67e1bdf6ad src/dev/mips/malta_io.hh --- a/src/dev/mips/malta_io.hh Wed Aug 13 06:57:29 2014 -0400 +++ b/src/dev/mips/malta_io.hh Wed Aug 13 06:57:30 2014 -0400 @@ -51,9 +51,6 @@ */ class MaltaIO : public BasicPioDevice { - private: - struct tm tm; - protected: class RTC : public MC146818 _______________________________________________ gem5-dev mailing list gem5-dev@gem5.org http://m5sim.org/mailman/listinfo/gem5-dev