From: Gabe Black Date: Sun, 13 Dec 2020 10:57:02 +0000 (-0800) Subject: x86: Some small style fixes in arch/x86/process.hh. X-Git-Tag: develop-gem5-snapshot~360 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4110ee2088388a64d3129b88c4b340446c158491;p=gem5.git x86: Some small style fixes in arch/x86/process.hh. Moved two single line functions to be all on one line, and added some consts. Change-Id: Iecfa3a9c2bde69ce2f26e9531864a7cb92b0a1df Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/38489 Reviewed-by: Jason Lowe-Power Maintainer: Jason Lowe-Power Tested-by: kokoro --- diff --git a/src/arch/x86/process.hh b/src/arch/x86/process.hh index 7288aae05..184d0ba04 100644 --- a/src/arch/x86/process.hh +++ b/src/arch/x86/process.hh @@ -68,11 +68,8 @@ namespace X86ISA std::vector > extraAuxvs); public: - Addr gdtStart() - { return _gdtStart; } - - Addr gdtSize() - { return _gdtSize; } + Addr gdtStart() const { return _gdtStart; } + Addr gdtSize() const { return _gdtSize; } void clone(ThreadContext *old_tc, ThreadContext *new_tc, Process *process, RegVal flags) override; @@ -159,7 +156,7 @@ namespace X86ISA I386Process(const ProcessParams ¶ms, ::Loader::ObjectFile *objFile); - const VSyscallPage &getVSyscallPage() { return vsyscallPage; } + const VSyscallPage &getVSyscallPage() const { return vsyscallPage; } void argsInit(int pageSize); void initState() override;