Brandon Potter has uploaded this change for review. ( https://gem5-review.googlesource.com/2271

Change subject: style: change NULL to nullptr in syscall files
......................................................................

style: change NULL to nullptr in syscall files

Change-Id: I02719f3572f6665cace1eb5681f297dcde9e71ce
---
M src/sim/syscall_emul.cc
M src/sim/syscall_emul.hh
2 files changed, 3 insertions(+), 3 deletions(-)



diff --git a/src/sim/syscall_emul.cc b/src/sim/syscall_emul.cc
index 722581e..b6d7a56 100644
--- a/src/sim/syscall_emul.cc
+++ b/src/sim/syscall_emul.cc
@@ -887,7 +887,7 @@
         return 0;
     }

-    Process *matched_ph = NULL;
+    Process *matched_ph = nullptr;
     System *sysh = tc->getSystemPtr();

     // Retrieves process pointer from active/suspended thread contexts.
@@ -901,7 +901,7 @@
         }
     }

-    assert(matched_ph != NULL);
+    assert(matched_ph);
     matched_ph->setpgid((pgid == 0) ? matched_ph->pid() : pgid);

     return 0;
diff --git a/src/sim/syscall_emul.hh b/src/sim/syscall_emul.hh
index a0fb7e4..a1c3b29 100644
--- a/src/sim/syscall_emul.hh
+++ b/src/sim/syscall_emul.hh
@@ -1484,7 +1484,7 @@
             return -EBADF;
         sim_fd = ffdp->getSimFD();

-        pmap = (decltype(pmap))mmap(NULL, length, PROT_READ, MAP_PRIVATE,
+ pmap = (decltype(pmap))mmap(nullptr, length, PROT_READ, MAP_PRIVATE,
                                     sim_fd, offset);

         if (pmap == (decltype(pmap))-1) {

--
To view, visit https://gem5-review.googlesource.com/2271
To unsubscribe, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I02719f3572f6665cace1eb5681f297dcde9e71ce
Gerrit-Change-Number: 2271
Gerrit-PatchSet: 1
Gerrit-Owner: Brandon Potter <brandon.pot...@amd.com>
_______________________________________________
gem5-dev mailing list
gem5-dev@gem5.org
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to