From 4110ee2088388a64d3129b88c4b340446c158491 Mon Sep 17 00:00:00 2001
From: Gabe Black <gabe.black@gmail.com>
Date: Sun, 13 Dec 2020 02:57:02 -0800
Subject: [PATCH] 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 <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
---
 src/arch/x86/process.hh | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

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<AuxVector<IntType> > 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 &params,
                     ::Loader::ObjectFile *objFile);
 
-        const VSyscallPage &getVSyscallPage() { return vsyscallPage; }
+        const VSyscallPage &getVSyscallPage() const { return vsyscallPage; }
 
         void argsInit(int pageSize);
         void initState() override;
-- 
2.30.2