sim: Small style fixes in sim/syscall_return.hh.
authorGabe Black <gabeblack@google.com>
Fri, 22 Nov 2019 23:35:28 +0000 (15:35 -0800)
committerGabe Black <gabeblack@google.com>
Wed, 4 Dec 2019 04:29:50 +0000 (04:29 +0000)
Jira Issue: https://gem5.atlassian.net/browse/GEM5-187

Change-Id: I485004843393c2e10c1ff4dbd84fc30ca4fd490c
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/23165
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/sim/syscall_return.hh

index 1d531daace749f863fd2eea223946fe9cac1a0e8..b2e32482704e17bf74233616c9f3e727d0557391 100644 (file)
@@ -68,7 +68,8 @@ class SyscallReturn
     {}
 
     /// Pseudo-constructor to create an instance with the retry flag set.
-    static SyscallReturn retry()
+    static SyscallReturn
+    retry()
     {
         SyscallReturn s(0);
         s.retryFlag = true;
@@ -78,7 +79,8 @@ class SyscallReturn
     ~SyscallReturn() {}
 
     /// Was the system call successful?
-    bool successful() const
+    bool
+    successful() const
     {
         return (value >= 0 || value <= -4096);
     }
@@ -87,27 +89,25 @@ class SyscallReturn
     bool needsRetry() const { return retryFlag; }
 
     /// The return value
-    int64_t returnValue() const
+    int64_t
+    returnValue() const
     {
         assert(successful());
         return value;
     }
 
     /// The errno value
-    int errnoValue() const
+    int
+    errnoValue() const
     {
         assert(!successful());
         return -value;
     }
 
     /// The encoded value (as described above)
-    int64_t encodedValue() const
-    {
-        return value;
-    }
+    int64_t encodedValue() const { return value; }
 
   private:
-
     int64_t value;
 
     bool retryFlag;